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

Method assign_sub

tensorflow/python/ops/variables.py:810–826  ·  view source on GitHub ↗

Subtracts a value from this variable. This is essentially a shortcut for `assign_sub(self, delta)`. Args: delta: A `Tensor`. The value to subtract from this variable. use_locking: If `True`, use locking during the operation. name: The name of the operation to be created

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

Source from the content-addressed store, hash-verified

808 raise NotImplementedError
809
810 def assign_sub(self, delta, use_locking=False, name=None, read_value=True):
811 """Subtracts a value from this variable.
812
813 This is essentially a shortcut for `assign_sub(self, delta)`.
814
815 Args:
816 delta: A `Tensor`. The value to subtract from this variable.
817 use_locking: If `True`, use locking during the operation.
818 name: The name of the operation to be created
819 read_value: if True, will return something which evaluates to the new
820 value of the variable; if False will return the assign op.
821
822 Returns:
823 A `Tensor` that will hold the new value of this variable after
824 the subtraction has completed.
825 """
826 raise NotImplementedError
827
828 def scatter_sub(self, sparse_delta, use_locking=False, name=None):
829 """Subtracts `tf.IndexedSlices` from this variable.

Callers 15

testAssignmentsMethod · 0.95
fMethod · 0.95
assign_subFunction · 0.45
assign_subMethod · 0.45
assign_subMethod · 0.45
testCustomGradientMethod · 0.45
worker_fnMethod · 0.45
worker_fnMethod · 0.45
computeMethod · 0.45
funcMethod · 0.45

Calls

no outgoing calls

Tested by 8

testAssignmentsMethod · 0.76
fMethod · 0.76
testCustomGradientMethod · 0.36
worker_fnMethod · 0.36
worker_fnMethod · 0.36
computeMethod · 0.36
funcMethod · 0.36