comaniac commented on pull request #8893: URL: https://github.com/apache/tvm/pull/8893#issuecomment-916464350
I agree with the idea that it would be great to have examples for each pass. I'm just thinking whether we could have a more systematic way to do so instead of manually adding before/after examples to comments. For example, we could have a specific doc section showing pass examples, and we just need to write examples in Python, apply the pass, and print the result. In this way, when building documents, the Python file will be executed and the result of each pass will be generated automatically. A more specific example is like this: https://github.com/apache/tvm/blob/main/tutorials/optimize/opt_gemm.py And it becomes https://tvm.apache.org/docs/tutorials/optimize/opt_gemm.html. As you can see, all `print` in the Python file will be displayed in the generated document. -- 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]
