public static outputShape(layer as Layer<T>, input as IList<Long>) as IList<Long>
Computes output dimensions without allocating trainable parameters.
| Parameter | Description |
|---|---|
layer | Allowlisted stage. @param input Positive sample dimensions. |
Checked output shape. @throws ValueException for incompatible shapes.
output = LayerCodec<Float>.outputShape(layer, [28l, 28l, 1l])