klyn.math.nn.layers.Flatten.buildShape
method
public override buildShape(inputShape as IList<Long>) as IList<Long>
Description

Computes the product of the positive sample axes with overflow checking.

Parameters
ParameterDescription
inputShapeSample dimensions.
Returns

A single flattened dimension.

Throws
  • ValueException for invalid or overflowing shapes.
Example

shape = flatten.buildShape([28l, 28l])