From 3ceed11a9aaa3bcc1ca56328f2bbcf01792dbdfd Mon Sep 17 00:00:00 2001 From: Channingss Date: Thu, 13 Aug 2020 15:40:46 +0800 Subject: [PATCH] fix bug of slice --- x2paddle/op_mapper/paddle2onnx/opset9/opset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x2paddle/op_mapper/paddle2onnx/opset9/opset.py b/x2paddle/op_mapper/paddle2onnx/opset9/opset.py index 7bf46f2..8e1b313 100644 --- a/x2paddle/op_mapper/paddle2onnx/opset9/opset.py +++ b/x2paddle/op_mapper/paddle2onnx/opset9/opset.py @@ -462,7 +462,7 @@ class OpSet9(object): ends = op.attr('ends') node = helper.make_node( "Slice", - inputs=[op.input('Input')[0], starts_name, ends_name, axes_name], + inputs=[op.input('Input')[0]], outputs=op.output('Out'), axes=axes, starts=starts, -- GitLab