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

Method assign

tensorflow/python/ops/variables.py:774–790  ·  view source on GitHub ↗

Assigns a new value to the variable. This is essentially a shortcut for `assign(self, value)`. Args: value: A `Tensor`. The new value for this variable. use_locking: If `True`, use locking during the assignment. name: The name of the operation to be created read_val

(self, value, use_locking=False, name=None, read_value=True)

Source from the content-addressed store, hash-verified

772 raise NotImplementedError
773
774 def assign(self, value, use_locking=False, name=None, read_value=True):
775 """Assigns a new value to the variable.
776
777 This is essentially a shortcut for `assign(self, value)`.
778
779 Args:
780 value: A `Tensor`. The new value for this variable.
781 use_locking: If `True`, use locking during the assignment.
782 name: The name of the operation to be created
783 read_value: if True, will return something which evaluates to the new
784 value of the variable; if False will return the assign op.
785
786 Returns:
787 A `Tensor` that will hold the new value of this variable after
788 the assignment has completed.
789 """
790 raise NotImplementedError
791
792 def assign_add(self, delta, use_locking=False, name=None, read_value=True):
793 """Adds a value to this variable.

Callers 15

_generate_saved_modelFunction · 0.95
testParameterServerMethod · 0.95
mainFunction · 0.95
mainFunction · 0.95
ExportFunction · 0.95
testFetchListMethod · 0.95
__getitem__Method · 0.95
testAssignmentsMethod · 0.95

Calls

no outgoing calls