LocalObjectiveContext<T>

Models & Types · AiDotNet.Interfaces

One hidden layer’s view for BuildLocalObjective.

Properties

Property Summary
ILayer<T> Layer { get; } The layer itself.
LocalObjectiveStep<T> Step { get; } The step state (input, target, engine, readout, loss).
Tensor<T> Output { get; } The layer’s tape-recorded output, a function of this layer’s parameters only (its input is detached).
int HiddenIndex { get; } Position of this layer among the hidden trainable layers, 0-based from the input side.
int NetworkLayerIndex { get; } Index of this layer in the network’s Layers list.