Created
August 3, 2018 19:39
-
-
Save lxuechen/bad7cd680b25d726b6a2600c636b5d52 to your computer and use it in GitHub Desktop.
general defun
This file contains 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
tfe = tf.contrib.eager | |
model.call = tfe.defun(model.call) | |
model.compute_gradients = tfe.defun(model.compute_gradients) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment