Skip to content

Instantly share code, notes, and snippets.

@thierryherrmann
Created August 2, 2020 23:50
Show Gist options
  • Save thierryherrmann/ccb827c87534fcbc118f64d4ae6c3d5c to your computer and use it in GitHub Desktop.
Save thierryherrmann/ccb827c87534fcbc118f64d4ae6c3d5c to your computer and use it in GitHub Desktop.
type of reloaded module: <class 'tensorflow.python.saved_model.load.Loader._recreate_base_user_object.<locals>._UserObject'>
type of instantiated module: <class '__main__.CustomModule'>
my_train function: <tensorflow.python.saved_model.function_deserialization.RestoredFunction object at 0x7fc1c5872390>
__call__ function: <tensorflow.python.saved_model.function_deserialization.RestoredFunction object at 0x7fc1c58cbfd0>
sample prediction: [[0.54084957]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment