Created
August 3, 2018 19:39
-
-
Save lxuechen/94629057497b19c9807ea9a6910eb781 to your computer and use it in GitHub Desktop.
defun optimizer
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
def apply_gradients(optimizer, gradients, variables, global_step=None): | |
optimizer.apply_gradients( | |
zip(gradients, variables), global_step=global_step) | |
apply_gradients = tfe.defun(apply_gradients) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment