MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _prepare

Method _prepare

tensorflow/python/training/optimizer.py:1046–1052  ·  view source on GitHub ↗

Create all needed tensors before applying gradients. This is called with the name_scope using the "name" that users have chosen for the application of gradients.

(self)

Source from the content-addressed store, hash-verified

1044 pass
1045
1046 def _prepare(self):
1047 """Create all needed tensors before applying gradients.
1048
1049 This is called with the name_scope using the "name" that
1050 users have chosen for the application of gradients.
1051 """
1052 pass
1053
1054 def _apply_dense(self, grad, var):
1055 """Add ops to apply dense gradients to `var`.

Callers 1

apply_fnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected