areusch commented on PR #12197:
URL: https://github.com/apache/tvm/pull/12197#issuecomment-1197315605

   @ganler thanks for this PR! would be great to add highlighting to TVMScript.
   
   on the python deps: unfortunately we're still working through a PR to 
generate a virtualenv from gen_requirements.txt, so you'll also need to add it 
to `docker/install/ubuntu_install_python_package.sh` for now.
   
   regarding the actual PR, some thoughts: in general it'd be good to avoid 
adding dependencies to the TVM core unless they're clearly beneficial to a 
large set of code paths. the approach here seems to be to lex the stringified 
TVMScript and then highlight based on tokens. I wonder if it would be possible 
to instead modify the TVMScript printer? The benefit of doing this is that 
then, you could automatically determine whether you wanted to highlight 
TVMScript by checking whether it was being `operator<<` to a TTY. otherwise, i 
wonder if it might be better to put this in contrib (and not add pygments to 
the core tvm dep list) or create a `setup.py` "extra" to distinguish between 
dependencies needed just to run inference and dependencies needed for work on 
the compiler.


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