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

Method get_slot_names

tensorflow/python/training/optimizer.py:895–903  ·  view source on GitHub ↗

Return a list of the names of slots created by the `Optimizer`. See `get_slot()`. Returns: A list of strings.

(self)

Source from the content-addressed store, hash-verified

893 return named_slots.get(_var_key(var), None)
894
895 def get_slot_names(self):
896 """Return a list of the names of slots created by the `Optimizer`.
897
898 See `get_slot()`.
899
900 Returns:
901 A list of strings.
902 """
903 return sorted(self._slots.keys())
904
905 def variables(self):
906 """A list of variables which encode the current state of `Optimizer`.

Callers 9

apply_fnMethod · 0.95
doTestBasicMethod · 0.45
doTestBasicMethod · 0.45
testSparseMethod · 0.45
testSharingMethod · 0.45
testSparseStabilityMethod · 0.45
testSharingMethod · 0.45

Calls 1

keysMethod · 0.45

Tested by 7

doTestBasicMethod · 0.36
doTestBasicMethod · 0.36
testSparseMethod · 0.36
testSharingMethod · 0.36
testSparseStabilityMethod · 0.36
testSharingMethod · 0.36