LayerCode

data class LayerCode(val layerName: String, val operationType: String, val inputShape: IntArray, val outputShape: IntArray, val codeFragment: String)(source)

Represents generated C code for a single neural network layer.

This data class encapsulates all information needed to generate C code for a specific layer operation, including metadata about the layer's input/output shapes and the actual C code fragment.

Constructors

Link copied to clipboard
constructor(layerName: String, operationType: String, inputShape: IntArray, outputShape: IntArray, codeFragment: String)

Properties

Link copied to clipboard

Generated C code fragment for this layer

Link copied to clipboard

Shape of the input tensor as an array of dimensions

Link copied to clipboard

Unique identifier for the layer (e.g., "dense_1", "relu_2")

Link copied to clipboard

Type of operation (e.g., "Dense", "ReLU", "Sigmoid")

Link copied to clipboard

Shape of the output tensor as an array of dimensions

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