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

Method add_variable

tensorflow/python/keras/engine/base_layer.py:1722–1724  ·  view source on GitHub ↗

Deprecated, do NOT use! Alias for `add_weight`.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1720 date=None, instructions='Please use `layer.add_weight` method instead.')
1721 @doc_controls.do_not_doc_inheritable
1722 def add_variable(self, *args, **kwargs):
1723 """Deprecated, do NOT use! Alias for `add_weight`."""
1724 return self.add_weight(*args, **kwargs)
1725
1726 @property
1727 def variables(self):

Callers 15

testInt64LayerMethod · 0.95
testAddWeightMethod · 0.95
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
buildMethod · 0.45
function_adds_weightMethod · 0.45
buildMethod · 0.45
__init__Method · 0.45

Calls 1

add_weightMethod · 0.95

Tested by 15

testInt64LayerMethod · 0.76
testAddWeightMethod · 0.76
function_adds_weightMethod · 0.36
buildMethod · 0.36
__init__Method · 0.36
__init__Method · 0.36
__init__Method · 0.36
testAddVariableMethod · 0.36
testInitNotCalledMethod · 0.36