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

Method scatter_add

tensorflow/python/ops/variables.py:845–860  ·  view source on GitHub ↗

Adds `tf.IndexedSlices` to this variable. Args: sparse_delta: `tf.IndexedSlices` to be added to this variable. use_locking: If `True`, use locking during the operation. name: the name of the operation. Returns: A `Tensor` that will hold the new value of this variabl

(self, sparse_delta, use_locking=False, name=None)

Source from the content-addressed store, hash-verified

843 raise NotImplementedError
844
845 def scatter_add(self, sparse_delta, use_locking=False, name=None):
846 """Adds `tf.IndexedSlices` to this variable.
847
848 Args:
849 sparse_delta: `tf.IndexedSlices` to be added to this variable.
850 use_locking: If `True`, use locking during the operation.
851 name: the name of the operation.
852
853 Returns:
854 A `Tensor` that will hold the new value of this variable after
855 the scattered addition has completed.
856
857 Raises:
858 TypeError: if `sparse_delta` is not an `IndexedSlices`.
859 """
860 raise NotImplementedError
861
862 def scatter_max(self, sparse_delta, use_locking=False, name=None):
863 """Updates this variable with the max of `tf.IndexedSlices` and itself.

Callers 15

__init__Method · 0.45
minimizeMethod · 0.45
_apply_sparseMethod · 0.45
_apply_sparseMethod · 0.45
_apply_sparseMethod · 0.45
_apply_sparseMethod · 0.45
_apply_gradientMethod · 0.45
testWrongShapeMethod · 0.45

Calls

no outgoing calls

Tested by 2

testWrongShapeMethod · 0.36