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

Function CreateVariable

lingvo/core/py_utils.py:1882–1917  ·  view source on GitHub ↗

Creates tf.Variable 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. collections: Override the

(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

CreateEMADecayVarFunction · 0.85

Calls 3

use_stateless_vars_initFunction · 0.85
_CreateVariableStatelessFunction · 0.85
_CreateVariableStatefulFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…