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

Method variables

tensorflow/python/module/module.py:143–155  ·  view source on GitHub ↗

Sequence of variables owned by this module and it's submodules. Note: this method uses reflection to find variables on the current instance and submodules. For performance reasons you may wish to cache the result of calling this method if you don't expect the return value to change.

(self)

Source from the content-addressed store, hash-verified

141
142 @property
143 def variables(self):
144 """Sequence of variables owned by this module and it's submodules.
145
146 Note: this method uses reflection to find variables on the current instance
147 and submodules. For performance reasons you may wish to cache the result
148 of calling this method if you don't expect the return value to change.
149
150 Returns:
151 A sequence of variables for the current module (sorted by attribute
152 name) followed by variables from all submodules recursively (breadth
153 first).
154 """
155 return tuple(self._flatten(predicate=_is_variable))
156
157 @property
158 def trainable_variables(self):

Callers

nothing calls this directly

Calls 2

_flattenMethod · 0.95
tupleFunction · 0.85

Tested by

no test coverage detected