MLPool2dOptions constructor

MLPool2dOptions({
  1. Iterable<int>? windowDimensions,
  2. Iterable<int>? padding,
  3. Iterable<int>? strides,
  4. Iterable<int>? dilations,
  5. MLAutoPad? autoPad,
  6. MLInputOperandLayout? layout,
  7. MLRoundingType? roundingType,
  8. Iterable<int>? outputSizes,
})

Implementation

factory MLPool2dOptions(
        {Iterable<int>? windowDimensions,
        Iterable<int>? padding,
        Iterable<int>? strides,
        Iterable<int>? dilations,
        MLAutoPad? autoPad,
        MLInputOperandLayout? layout,
        MLRoundingType? roundingType,
        Iterable<int>? outputSizes}) =>
    MLPool2dOptions._(
        windowDimensions: windowDimensions ?? undefined,
        padding: padding ?? undefined,
        strides: strides ?? undefined,
        dilations: dilations ?? undefined,
        autoPad: autoPad?.value ?? MLAutoPad.explicit.value,
        layout: layout?.value ?? MLInputOperandLayout.nchw.value,
        roundingType: roundingType?.value ?? MLRoundingType.floor.value,
        outputSizes: outputSizes ?? undefined);