generate

fun generate(libraryName: String, layers: List<LayerCode>, weights: List<WeightArray>): String(source)

Generates a C99-compatible source file for Arduino neural network inference.

Return

Generated C source file content as a string

Parameters

libraryName

Name of the Arduino library (used for function names and includes)

layers

List of layer code fragments to include in the inference function

weights

List of weight and bias arrays to serialize as static const arrays