diff --git a/x2paddle/op_mapper/dygraph/onnx2paddle/opset9/opset.py b/x2paddle/op_mapper/dygraph/onnx2paddle/opset9/opset.py index 5d7c5160007c7880812dc84569660bf91272f324..9a9fe0b03fc8f8561a2a9d2ddf4572c459da2b9c 100644 --- a/x2paddle/op_mapper/dygraph/onnx2paddle/opset9/opset.py +++ b/x2paddle/op_mapper/dygraph/onnx2paddle/opset9/opset.py @@ -42,7 +42,7 @@ def _const_weight_or_none(node, necessary=False): return None -def rename_or_remove_weight(weights, origin_name, target_name=None): +def _rename_or_remove_weight(weights, origin_name, target_name=None): if origin_name not in weights: raise KeyError('{} not a key in {}'.format(origin_name, weights)) if target_name is None: