MemoryLayout

data class MemoryLayout(val maxIntermediateSize: Int, val totalWeightSize: Int, val totalMemoryRequired: Int, val bufferSizes: List<Int>)(source)

Represents memory layout information for generated Arduino C code.

This data class contains all memory-related calculations needed for static memory allocation in the generated C code, ensuring predictable memory usage on resource-constrained Arduino devices.

Constructors

Link copied to clipboard
constructor(maxIntermediateSize: Int, totalWeightSize: Int, totalMemoryRequired: Int, bufferSizes: List<Int>)

Properties

Link copied to clipboard

List of buffer sizes for ping-pong memory management

Link copied to clipboard

Maximum size in bytes of intermediate tensors during inference

Link copied to clipboard

Total memory required in bytes (weights + intermediate buffers)

Link copied to clipboard

Total size in bytes of all weights and biases