openvino.runtime.opset8.gather¶
- openvino.runtime.opset8.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 :param axis: axis along which elements are gathered :param batch_dims: number of batch dimensions :return: The new node which performs Gather