MLConv2dOptions constructor

MLConv2dOptions({
  1. Iterable<int>? padding,
  2. Iterable<int>? strides,
  3. Iterable<int>? dilations,
  4. MLAutoPad? autoPad,
  5. int? groups,
  6. MLInputOperandLayout? inputLayout,
  7. MLConv2dFilterOperandLayout? filterLayout,
  8. MLOperand? bias,
  9. MLOperator? activation,
})

Implementation

factory MLConv2dOptions(
        {Iterable<int>? padding,
        Iterable<int>? strides,
        Iterable<int>? dilations,
        MLAutoPad? autoPad,
        int? groups,
        MLInputOperandLayout? inputLayout,
        MLConv2dFilterOperandLayout? filterLayout,
        MLOperand? bias,
        MLOperator? activation}) =>
    MLConv2dOptions._(
        padding: padding ?? undefined,
        strides: strides ?? undefined,
        dilations: dilations ?? undefined,
        autoPad: autoPad?.value ?? MLAutoPad.explicit.value,
        groups: groups ?? 1,
        inputLayout: inputLayout?.value ?? MLInputOperandLayout.nchw.value,
        filterLayout:
            filterLayout?.value ?? MLConv2dFilterOperandLayout.oihw.value,
        bias: bias ?? undefined,
        activation: activation ?? undefined);