MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / add_variable

Method add_variable

tensorflow/python/layers/base.py:414–481  ·  view source on GitHub ↗

Adds a new variable to the layer, or gets an existing one; returns it. Arguments: name: variable name. shape: variable shape. dtype: The type of the variable. Defaults to `self.dtype` or `float32`. initializer: initializer instance (callable). regularizer: regulari

(self, name, shape, dtype=None,
                   initializer=None, regularizer=None,
                   trainable=True, constraint=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

testAddWeightMethod · 0.95
add_weightMethod · 0.95
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
callMethod · 0.45
buildMethod · 0.45
_renorm_variableMethod · 0.45

Calls 9

_set_scopeMethod · 0.95
add_lossMethod · 0.95
in_graph_modeMethod · 0.80
variable_scopeMethod · 0.80
name_scopeMethod · 0.80
colocate_withMethod · 0.80
global_variablesMethod · 0.45
get_variableMethod · 0.45
appendMethod · 0.45

Tested by 3

testAddWeightMethod · 0.76
buildMethod · 0.36
callMethod · 0.36