EclecticGriffin opened a new pull request, #12493: URL: https://github.com/apache/tvm/pull/12493
Adds several decorators and classes for declaring tensor intrinsics is a (hopefully) more ergonomic way. The `AcceleratorInterface` and `IntrinsicDeclaration` classes act as handles to accelerators and intrinsics declared underneath them as well as places to store metadata in the future. `@intrinsic` and `@AcceleratorInterface.intrinsic`decorators are for declaring new intrinsics. `@generator` and `@run_generator` add utilities for generator functions (functions which return an intrinsic). Some example snippets are in the docstrings but it would probably be helpful to make an example test though I am not entirely sure what would be the best to put there. Anyway, thoughts are welcome. Tagging: @csullivan, @JosephTheOctonaut, @Lunderberg -- 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]
