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

Method CreateVariable

lingvo/core/base_layer.py:823–874  ·  view source on GitHub ↗

Create a variable of this layer according to the parameter `var_params`. E.g.:: def __init__(self, ...): # A layer's constructor self.CreateVariable( 'weight', py_utils.WeightParams(shape=[100, 100])) Args: name: Variable name which is used as the

(self,
                     name: str,
                     var_params: hyperparams.Params,
                     **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

_CheckNameMethod · 0.95