WeightArray

data class WeightArray(val name: String, val values: FloatArray, val shape: IntArray, val isWeight: Boolean = true)(source)

Represents a weight or bias array for C code generation.

This data class encapsulates weight/bias data that needs to be serialized as static const float arrays in the generated C source code.

Constructors

Link copied to clipboard
constructor(name: String, values: FloatArray, shape: IntArray, isWeight: Boolean = true)

Properties

Link copied to clipboard

True if this represents weights, false if biases

Link copied to clipboard

Variable name for the weight array in C code

Link copied to clipboard

Shape of the weight tensor as an array of dimensions

Link copied to clipboard

Array of weight/bias values

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String