MCPcopy Create free account
hub / github.com/tensorflow/lingvo / _CreateVariableStateful

Function _CreateVariableStateful

lingvo/core/py_utils.py:1920–2085  ·  view source on GitHub ↗

Creates tf.Variable using TF stateful RNGs according to param_config. Args: name: A string, name of the variable. params: A WeightParams specifying the details of how this variable should be constructed and initialized. trainable: Whether or not the variable is trainable. co

(name,
                            params,
                            trainable=True,
                            collections=None,
                            default_seed=None,
                            synchronization=tf.VariableSynchronization.AUTO,
                            aggregation=tf.VariableAggregation.NONE)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CreateVariableFunction · 0.85

Calls 15

ToStaticShapeFunction · 0.85
IsDefaultParamInitFunction · 0.85
GetVariableNameFunction · 0.85
GenerateSeedFromNameFunction · 0.85
FindDataTypeFunction · 0.85
_CreateVarInitStatefulFunction · 0.85
ComplexWrapperFunction · 0.85
FloatToInt8WrapperFunction · 0.85
GetLingvoVariableCreatorFunction · 0.85
VariableCreatorScopeFunction · 0.85
GetVariableShapePrefixesFunction · 0.85
_GetVariableCreatorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…