You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/12/09 10:20:47 UTC
[GitHub] [tvm] liangfu commented on a change in pull request #7059: #7058 [Tutorial] Import errors in deploy_detection.py and deploy_classification.py
liangfu commented on a change in pull request #7059:
URL: https://github.com/apache/tvm/pull/7059#discussion_r539181597
##########
File path: vta/tutorials/frontend/deploy_classification.py
##########
@@ -56,9 +56,14 @@
from tvm.contrib.debugger import debug_runtime
from tvm.relay import transform
+os.chdir(dirname(os.path.abspath(__file__)))
+os.chdir(join(pardir, pardir, pardir))
+sys.path.append(os.getcwd())
Review comment:
CI is complaining about the usage of `__file__` here.
Also, I think we can safely remove these lines here, since TVM is assumed to be exist in users' environment, IMHO.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org