SourceTemplate

Template for generating C99-compatible source files for Arduino neural network inference.

This object generates source files that contain static const float arrays for weights/biases, the inference function implementation, and ping-pong buffer memory management.

Functions

Link copied to clipboard
fun generate(libraryName: String, layers: List<LayerCode>, weights: List<WeightArray>): String

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