openvino.runtime.opset13.gather

openvino.runtime.opset13.gather(data: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], indices: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], axis: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], batch_dims: Optional[int] = 0) openvino._pyopenvino.Node

Return a node which performs Gather with support of negative indices.

Parameters
  • data – N-D tensor with data for gathering

  • indices – N-D tensor with indices by which data is gathered. Negative indices indicate reverse indexing from the end

  • axis – axis along which elements are gathered

  • batch_dims – number of batch dimensions

Returns

The new node which performs Gather