From d7934bf5610af9ddcf4d858fd0598677a4793aa1 Mon Sep 17 00:00:00 2001 From: yeliang2258 <1047690002@qq.com> Date: Mon, 10 Jan 2022 13:02:50 +0000 Subject: [PATCH] fix --- x2paddle/op_mapper/onnx2paddle/opset9/opset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py index d923272..6fb18a0 100755 --- a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py +++ b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py @@ -1999,6 +1999,7 @@ class OpSet9(): @print_mapping_info def Neg(self, node): + import paddle val_x = self.graph.get_input_node(node, idx=0, copy=True) v0, v1, v2 = paddle.__version__.split('.') if int(v0) >= 2 and int(v1) >= 2: -- GitLab