Skip to main content

//clika-runtime/io.clika.runtime/Tensor/toFloatArray

toFloatArray

[common]
fun toFloatArray(): FloatArray

Every element of a Float32 tensor of any rank, copied out flat in row-major order (the last dimension varies fastest: a [2, 3] tensor reads row 0's three values, then row 1's), after waiting for the producer. A tensor whose strides admit no flat view is packed into one for the read; the tensor itself is unchanged. Reshape the array by shape on your side when you need the grid back.