This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 0d51fbbecd Fix bug about wrong attribute name (#14636)
0d51fbbecd is described below

commit 0d51fbbecde0cefc4da8ef5c171c2fbd22655e30
Author: Qingchao Shen <[email protected]>
AuthorDate: Mon Apr 17 00:50:28 2023 +0800

    Fix bug about wrong attribute name (#14636)
---
 python/tvm/relay/frontend/onnx.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm/relay/frontend/onnx.py 
b/python/tvm/relay/frontend/onnx.py
index ca4551a04e..5e72abd65d 100644
--- a/python/tvm/relay/frontend/onnx.py
+++ b/python/tvm/relay/frontend/onnx.py
@@ -3460,7 +3460,7 @@ class Constant(OnnxOpConverter):
     @classmethod
     def _impl_v9(cls, inputs, attr, params):
         if "value" not in attr:
-            raise tvm.errors.OpAttributeRequired("no value in Constant")
+            raise tvm.error.OpAttributeRequired("no value in Constant")
         value = attr.pop("value")
         # Constants may rarely have string types. These are likely exported
         # from other frameworks and not actually used in TVM. We'll just use

Reply via email to