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

Preserves any positive sample shape.

Parameters
ParameterDescription
inputShapeDimensions excluding the batch axis.
Returns

Snapshot of inputShape.

Throws
  • ValueException for invalid dimensions.
Example

dropout.buildShape([28l, 28l, 16l])