generate

fun generate(libraryName: String, inputDims: IntArray, outputDims: IntArray, description: String = "Neural network inference example"): String(source)

Generates an Arduino example sketch demonstrating neural network inference.

Return

Generated Arduino sketch (.ino file) content as a string

Parameters

libraryName

Name of the Arduino library to include and use

inputDims

Array of input tensor dimensions

outputDims

Array of output tensor dimensions

description

Optional description of what the model does