diff --git a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py index c08be94567bc9a7fd1caa9c206d2f6cf6bd30a92..e09302d542875b316f14038d8ef3030a8d6ac20c 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: