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 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 offsetand shape at runtime. Copy
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 offsetand shape at runtime.
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.