From 33092aa9f238c829a1e81ca608ac23936b5c5d86 Mon Sep 17 00:00:00 2001 From: Channingss Date: Thu, 30 Jul 2020 07:51:35 +0000 Subject: [PATCH] merge paddle/develop --- x2paddle/op_mapper/paddle2onnx/opset11/opset.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x2paddle/op_mapper/paddle2onnx/opset11/opset.py b/x2paddle/op_mapper/paddle2onnx/opset11/opset.py index 385b377..8593312 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') -- GitLab