slice

fun slice(flatOffset: Int, size: Int): MemorySegmentTensorData<T>(source)

Returns a zero-copy view into this tensor's segment. The returned view shares the same underlying memory.