From a437d052e22e74f9f8321edf09536ee28e9e5bc9 Mon Sep 17 00:00:00 2001 From: wjj19950828 Date: Mon, 6 Jun 2022 14:15:05 +0800 Subject: [PATCH] add notes --- 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 abb725b..1d0770a 100755 --- a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py +++ b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py @@ -2586,6 +2586,7 @@ class OpSet9(): k = _const_weight_or_none(val_k) if isinstance(k, (list, tuple, np.ndarray)): k = k[0] + # If k can get the value directly, it is used as an attribute; otherwise it is used as an input tensor if k is not None: layer_attrs["k"] = k self.paddle_graph.add_layer( -- GitLab