input

open override fun input(inputSize: Int, id: String, requiresGrad: Boolean)(source)

Creates an input layer that defines the entry point for data into the network.

Parameters

inputSize

The number of input features/dimensions

id

Optional identifier for the layer (auto-generated if empty)

requiresGrad

Whether the input requires gradients (default: false)