Tensor

class Tensor(val shape: IntArray, val data: FloatArray)

A dense float32 tensor in row-major order. Shapes follow the model's native layout (Faktel models here use NCHW).

Constructors

Link copied to clipboard
constructor(shape: IntArray, data: FloatArray)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Tensor.toNSData(): NSData

Copies the tensor's float32 values (native byte order) into a new NSData.

Link copied to clipboard
open override fun toString(): String