openvino.runtime.opset15.gather#

openvino.runtime.opset15.gather(data: Node | int | float | ndarray, indices: Node | int | float | ndarray, axis: Node | int | float | ndarray, batch_dims: int | None = 0, name: str | None = None) 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

  • name – Optional output node name.

Returns:

The new node which performs Gather