LpPool

Description

Performs Lp norm pooling.

Input

One input:

x: tensor of type float16.

Output

One output:

y: tensor of type float16.

Attribute

auto_pad: string. The default value is NOTSET. The value can be NOTSET, SAME_UPPER, or VALID.

kernel_shape: (mandatory) int list, size of each kernel axis.

p: int, norm. Defaults to 2.

pads: int list.

strides: int list.

The auto_pad attribute supports SAME_UPPER but does not support SAME_LOWER because both SAME_LOWER and SAME_UPPER use the SAME attribute of TBE. However, TBE operators do not differentiate the padding position based on this attribute, which may result in accuracy issues.

ONNX Opset Support

Opset v11/v12/v13/v14/v15/v16/v17/v18