You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/04/19 16:08:29 UTC

[GitHub] [tvm] Lunderberg commented on pull request #11062: [TVMScript] Allow parameters in @T.prim_func definition

Lunderberg commented on PR #11062:
URL: https://github.com/apache/tvm/pull/11062#issuecomment-1102833431

   I was thinking of this as complementary to the existing `PrimFunc.specialize`.  Where `specialize` can operate on existing `PrimFunc` objects, and can be used from C++, these parameters can only be used when generating a new `PrimFunc` object from Python.
   
   The advantage of using the `prim_func` parameters is that they do not require adding the parameter to the `PrimFunc` arguments and do not require running through an additional transformation, making them easier to read when writing test cases.


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org