You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by le...@apache.org on 2021/12/09 14:47:45 UTC

[tvm] branch main updated: Fix TVMC micro import error (#9688)

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

leandron 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 f8f820e  Fix TVMC micro import error (#9688)
f8f820e is described below

commit f8f820e660def78ec4d8e39ee2c6281edb3a6349
Author: Mehrdad Hessar <mh...@octoml.ai>
AuthorDate: Thu Dec 9 06:47:22 2021 -0800

    Fix TVMC micro import error (#9688)
---
 python/tvm/driver/tvmc/runner.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm/driver/tvmc/runner.py b/python/tvm/driver/tvmc/runner.py
index 4a37906..76149b2 100644
--- a/python/tvm/driver/tvmc/runner.py
+++ b/python/tvm/driver/tvmc/runner.py
@@ -52,7 +52,7 @@ try:
     from tvm.micro.project_api.client import ProjectAPIServerNotFoundError
 
     SUPPORT_MICRO = True
-except ImportError:
+except (ImportError, AttributeError) as exception:
     SUPPORT_MICRO = False
 
 # pylint: disable=invalid-name