Skip to content

Instantly share code, notes, and snippets.

@bneijt
Last active March 16, 2017 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bneijt/1b1357f6ea02996201883960cb1ce896 to your computer and use it in GitHub Desktop.
Save bneijt/1b1357f6ea02996201883960cb1ce896 to your computer and use it in GitHub Desktop.
Second time boom, titanic fails
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bneijt
Copy link
Author

bneijt commented Mar 16, 2017

Problem can be fixed by inserting:

#Clear graph cache
tf.reset_default_graph()

just before the net = ... code, this clears all variables in the default graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment