slyubomirsky commented on PR #14183:
URL: https://github.com/apache/tvm/pull/14183#issuecomment-1454129165

   > > Do we have any way to enforce that the function passed to `call_tir` is 
a `PrimFunc`? I believe making `call_tir` more specific was discussed before. 
(Should we still permit passing a `PrimFunc` to `call_dps_packed`?)
   > 
   > We can enforce it in `MakeCallTIR` and `MakeCallDPSPacked`. For now I 
don't see a reason to allow `call_dps_packed` to call `Primfunc`. cc @tqchen
   
   It would have to be in the implementation as well, since you can do 
something like assign a TIR function to a local var and pass that local var 
elsewhere. In a higher-order function, we wouldn't be able to detect that at 
compile time unless we make TIR functions part of the type system (though that 
could be an option).


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