MLInstanceNormalizationOptions constructor

MLInstanceNormalizationOptions({
  1. MLOperand? scale,
  2. MLOperand? bias,
  3. double? epsilon,
  4. MLInputOperandLayout? layout,
})

Implementation

factory MLInstanceNormalizationOptions(
        {MLOperand? scale,
        MLOperand? bias,
        double? epsilon,
        MLInputOperandLayout? layout}) =>
    MLInstanceNormalizationOptions._(
        scale: scale ?? undefined,
        bias: bias ?? undefined,
        epsilon: epsilon ?? 1e-5,
        layout: layout?.value ?? MLInputOperandLayout.nchw.value);