Ternary2BitTensorData

constructor(initialShape: Shape, data: ByteArray, scale: Float = 1.0f)(source)

Parameters

initialShape

the shape of the tensor

data

the packed byte array (4 ternary values per byte)

scale

the scale factor for FP32 dequantization