Created
July 8, 2020 12:04
-
-
Save irdanish11/616ff145deb02945d24e2baff91354c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a = tf.Variable(0) | |
| @tf.function | |
| def g(x): | |
| x.assign_add(1) | |
| return x | |
| print(g(a)) | |
| print(g(a)) | |
| print(g(a)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment