MLConvTranspose2dOptions constructor

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

Implementation

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