tqchen commented on a change in pull request #5163: [VTA][Refactor] Introducing 
VTA_HW_PATH for easier migration
URL: https://github.com/apache/incubator-tvm/pull/5163#discussion_r399713311
 
 

 ##########
 File path: vta/vta-hw/config/pkg_config.py
 ##########
 @@ -22,6 +22,20 @@
 
 import json
 import glob
+import os
+
+def get_vta_hw_path():
+    """Get the VTA HW path."""
+    VTA_HW_PATH = os.getenv('VTA_HW_PATH', None)
+    assert VTA_HW_PATH, "Please set VTA_HW_PATH to point to TVM dir \
+                         VTA subdirectory (<tvm-root>/vta/vta-hw)."
+    return VTA_HW_PATH
+
+def get_tvm_path():
+    """Get the TVM path."""
+    TVM_PATH = os.getenv('TVM_PATH', None)
 
 Review comment:
   it is better to have a default

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to