klyn.math.nn.serialization.LayerCodec.parameterShapes
method
public static parameterShapes(layer as Layer<T>, input as IList<Long>) as ArrayList<IList<Long>>
Description

Expected parameter shapes, without parameter allocation.

Parameters
ParameterDescription
layerAllowlisted stage. @param input Positive sample dimensions.
Returns

Ordered shapes of weights and optional bias.

Example

shapes = LayerCodec<Float>.parameterShapes(layer, [784l])