diff --git a/x2paddle/op_mapper/paddle2onnx/opset9/opset.py b/x2paddle/op_mapper/paddle2onnx/opset9/opset.py index c79bedfd2cb1a87d4b33c33b4f715b302ba7e1e5..ce50628a0347c97e894a453aac310bb5fb86c4cd 100644 --- a/x2paddle/op_mapper/paddle2onnx/opset9/opset.py +++ b/x2paddle/op_mapper/paddle2onnx/opset9/opset.py @@ -853,8 +853,9 @@ class OpSet9(object): node0 = helper.make_node( 'Add', inputs=[op.input('X')[0], offset_name], outputs=[name0]) name1 = self.get_name(op.type, 'relu') - min_value = op.attr('min') - max_value = op.attr('max') + min_value = 0.0 + max_value = op.attr('threshold') + node1 = helper.make_node( 'Clip', inputs=[name0],