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

Initializes an unbuilt layer, or checks its existing input dimensions.

Parameters
ParameterDescription
inputShapePositive sample dimensions, excluding the batch axis.
Returns

Output sample dimensions, excluding the batch axis.

Throws
  • ValueException if dimensions disagree.
Example

shape = layer.buildShape([784l])