diff --git a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py index d9232729dbfc9aa22061145a6f2bb52f899b35d4..6fb18a03ecd1f224d6ac86f2036c3900f20365c2 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: