Skip to main content

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

fromBlobStrided

[jvm]\

@JvmOverloads

fun fromBlobStrided(buffer: ByteBuffer, shape: LongArray, strides: LongArray, dtype: Int = ClikaRtGen.DATA_TYPE_FLOAT32, device: Device? = 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).