For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
AdvancedIndexingGetItem
struct AdvancedIndexingGetItem
Implemented traitsβ
AnyType,
ImplicitlyDestructible
Methodsβ
executeβ
static def execute[input_rank: Int, index_rank: Int, output_rank: Int, input_type: DType, index_type: DType, num_index_tensors: Int, //, start_axis: Int, target: StringSlice[StaticConstantOrigin], _trace_name: StringSlice[StaticConstantOrigin]](out_tensor: ManagedTensorSlice[Output, static_spec=out_tensor.static_spec], input_tensor: ManagedTensorSlice[FusedInput, static_spec=input_tensor.static_spec], indices: _FusedInputVariadicTensors[static_specs=indices.static_specs], ctx: DeviceContext)
shapeβ
static def shape[input_rank: Int, index_rank: Int, input_type: DType, index_type: DType, num_index_tensors: Int, //, start_axis: Int](input_tensor: ManagedTensorSlice[Input, static_spec=input_tensor.static_spec], indices: VariadicTensors[num_index_tensors, Input, static_specs=indices.static_specs]) -> IndexList[((input_rank + index_rank) - num_index_tensors)]
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!