klyn.math.nn.layers.Layer.forward
method
public abstract forward(inputs as NDArray<T>) as NDArray<T>
Description

Computes inference outputs without changing parameters or retaining the batch. Stochastic regularization such as Dropout is disabled on this path.

Parameters
ParameterDescription
inputsTensor [samples, ...sample dimensions].
Returns

Output tensor with the same leading batch axis.

Example

output = layer.forward(batch)