MLConv2dOptions constructor
MLConv2dOptions({
- Iterable<
int> ? padding, - Iterable<
int> ? strides, - Iterable<
int> ? dilations, - MLAutoPad? autoPad,
- int? groups,
- MLInputOperandLayout? inputLayout,
- MLConv2dFilterOperandLayout? filterLayout,
- MLOperand? bias,
- 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);