ngraph.opset7.scatter_elements_update

ngraph.opset7.scatter_elements_update(data: Union[_pyngraph.Node, int, float, numpy.ndarray], indices: Union[_pyngraph.Node, int, float, numpy.ndarray], updates: Union[_pyngraph.Node, int, float, numpy.ndarray], axis: Union[_pyngraph.Node, int, float, numpy.ndarray], name: Optional[str] = None) _pyngraph.Node

Return a node which produces a ScatterElementsUpdate operation.

Parameters
  • data – The input tensor to be updated.

  • indices – The tensor with indexes which will be updated.

  • updates – The tensor with update values.

  • axis – The axis for scatter.

Returns

ScatterElementsUpdate node

ScatterElementsUpdate creates a copy of the first input tensor with updated elements specified with second and third input tensors.

For each entry in updates, the target index in data is obtained by combining the corresponding entry in indices with the index of the entry itself: the index-value for dimension equal to axis is obtained from the value of the corresponding entry in indices and the index-value for dimension not equal to axis is obtained from the index of the entry itself.