Last active
November 20, 2021 17:21
-
-
Save danijar/720394a9071a03413be8a60852374aa4 to your computer and use it in GitHub Desktop.
TensorFlow decorator to share variables between calls. Works for both functions and methods.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've updated the code to include a fix and to use the
self.name
attribute of model classes if available, and fall back toid(self)
otherwise.