diff --git a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py index 20538cc7051b725abc09d728610e9caf3b13a0d2..ef3c670a114902ed6a1a8930dc44993e3ecefe26 100644 --- a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py +++ b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py @@ -411,6 +411,7 @@ class OpSet9(): output_shape = node.out_shapes[0] assume_pad2d = False attr = {} + paddings = [] if len(pads) == 4: assume_pad2d |= mode != 'constant' if data_shape: