TypeTensor - v0.1.0
    Preparing search index...

    Type Alias SliceOp<Input, Indices>

    SliceOp: SlicedShape<Input["__shape"], Indices> extends never
        ? never
        : StorageTransformation<
            "slice",
            TensorStorage<
                Input["__dtype"],
                SlicedShape<Input["__shape"], Indices>,
                ComputeSlicedStrides<Input["__strides"], Indices>,
                ViewLayout<Input["__layout"]>,
            > & { __sliceIndices: Indices },
            readonly [Input],
        >

    Slice operation storage transformation

    Creates a view of the tensor with a subset of elements along each dimension. The actual slicing computation is performed by the device at execution time.

    Type Parameters

    type A = TensorStorage<Float32, [10, 20, 30]>;
    type B = SliceOp<A, [SliceSpec, 5, null]>; // Shape: [5, 30]
    type C = SliceOp<A, [null, null, SliceSpec]>; // Shape: [10, 20, number]

    The device implementation will use the indices to compute the actual offset
    and shape at runtime.