diff --git a/x2paddle/op_mapper/paddle2onnx/opset11/opset.py b/x2paddle/op_mapper/paddle2onnx/opset11/opset.py index 385b377b6577b035b5720a49317f4379300589de..8593312f2799e2f9085641a0a7c892f3d47db74e 100644 --- a/x2paddle/op_mapper/paddle2onnx/opset11/opset.py +++ b/x2paddle/op_mapper/paddle2onnx/opset11/opset.py @@ -61,6 +61,12 @@ class OpSet11(OpSet10): constant_value_node = self.make_constant_node(constant_value_name, onnx_pb.TensorProto.FLOAT, op.attr('pad_value')) + node = helper.make_node( + 'Pad', + inputs=op.input('X') + [pads_name, constant_value_name], + outputs=op.output('Out'), + mode=op.attr('mode')) + return [pads_node, constant_value_node, node] def clip(self, op, block): min_name = self.get_name(op.type, 'min')