Skip to main content

//clika-runtime/io.clika.runtime/Tensors/fromBlobStrided

fromBlobStrided

[common]
fun fromBlobStrided(buffer: <Error class: unknown class>, shape: LongArray, strides: LongArray, dtype: DType = DType.FLOAT32, where: Placement? = null, deleter: VoidCallback? = null): Tensor

fromBlob over a strided layout: strides are element strides per dimension (a region of a larger row-major image keeps the image's row pitch as its row stride). buffer's position 0 is the first element (slice() a buffer to start elsewhere).