Change "Do whatever you need" to "Process"

This commit is contained in:
HarikrishnanBalagopal 2019-08-08 23:35:03 +05:30 committed by GitHub
parent 31eb0e012e
commit 1485fc5838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ class OptimizerV2(trackable.Trackable):
vars = <list_of_variables>
grads = tape.gradient(loss, vars)
# Do whatever you need to the gradients, for example cap them, etc.
# Process the gradients, for example cap them, etc.
# capped_grads = [MyCapper(g) for g in grads]
processed_grads = [process_gradient(g) for g in grads]