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

Method _create_slots

tensorflow/python/training/optimizer.py:1037–1044  ·  view source on GitHub ↗

Create all slots needed by the variables. Args: var_list: A list of `Variable` objects.

(self, var_list)

Source from the content-addressed store, hash-verified

1035 [dtypes.float16, dtypes.bfloat16, dtypes.float32, dtypes.float64])
1036
1037 def _create_slots(self, var_list):
1038 """Create all slots needed by the variables.
1039
1040 Args:
1041 var_list: A list of `Variable` objects.
1042 """
1043 # No slots needed by default
1044 pass
1045
1046 def _prepare(self):
1047 """Create all needed tensors before applying gradients.

Callers 1

apply_fnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected