klyn.math.nn.serialization.LayerCodec.boolean
method
public static boolean(value as Object) as Boolean
Description

Reads a JSON Boolean without accepting numeric or textual conversions.

Parameters
ParameterDescription
valueParsed field. @return Boolean value.
Throws
  • ValueException for a field of another type.
Example

enabled = LayerCodec<Float>.boolean(config["useBias"])