tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] apivovarov commented on a change in pull request #4467: [BUGFIX] Fix search path for libtvm_topi.so
Date Wed, 04 Dec 2019 21:03:53 GMT
apivovarov commented on a change in pull request #4467: [BUGFIX] Fix search path for libtvm_topi.so
URL: https://github.com/apache/incubator-tvm/pull/4467#discussion_r353981281
 
 

 ##########
 File path: topi/python/topi/cpp/impl.py
 ##########
 @@ -32,7 +32,7 @@ def _get_lib_names():
 def _load_lib():
     """Load libary by searching possible path."""
     curr_path = os.path.dirname(os.path.realpath(os.path.expanduser(__file__)))
-    lib_search = curr_path
+    lib_search = [curr_path, os.path.join(curr_path, "..")]
 
 Review comment:
   you can use `os.path.dirname(` to get the parent folder
   ```
   >>> import os
   >>> os.path.dirname('/tmp')
   '/'
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services

Mime
View raw message