klyn.math.nn.serialization.LayerCodec.readShape
method
public static readShape(value as Object) as ArrayList<Long>
Description

Decodes a bounded, positive, non-overflowing shape.

Parameters
ParameterDescription
valueJSON array of decimal strings. @return Checked shape.
Throws
  • ValueException for empty, excessive-rank or invalid dimensions.
Example

dimensions = LayerCodec<Float>.readShape(config["shape"])