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

Infers the input width from vector sample dimensions.

Parameters
ParameterDescription
inputShapeExactly one positive sample dimension.
Returns

Vector shape containing the output unit count.

Throws
  • ValueException on incompatible dimensions.
Example

layer.buildShape([784l])