tqchen commented on pull request #9203:
URL: https://github.com/apache/tvm/pull/9203#issuecomment-938926659


   OK, I find sometime to dig a bit deeper into the errors. The problem comes 
from the way we get tvm_path 
https://github.com/apache/tvm/blob/main/docs/conf.py#L52 which is relative 
instead of absolute path.
   
   Sphinx gallery runs the tutorial file from cwd of the file(e.g. it will run 
on `gallery/how_to/compile_models/`) where the environment variable of tvm_path 
set to `../../python` produces a mismatch.
   
   A possible way to fix is to add  `tvm_path = os.path.abs_path` to 
https://github.com/apache/tvm/blob/main/docs/conf.py#L54(and I confirm it works)
   
   But given @Lunderberg you wrote this part and left a comment about relative 
path, would be great to confirm
   
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to