srkreddy1238 commented on PR #14010:
URL: https://github.com/apache/tvm/pull/14010#issuecomment-1434100499

   @Mousius 
   
   Another thought here, How about using packed functions instead of inventory 
of hooks ?
   
   Hook is defined in user application or the respective contrib as
   
   ```
   @tvm.register_func("adreno.mixed_precision_fp16")
   def mixed_precision_fp16(mod, params, args):
         . . . . . .
   
        return mod
   ```
   
   Invoked as ```--pre-build-hooks "adreno.mixed_precision_fp16"``` and tvmc 
looks for this packed function and invokes it.
   
   This can be good starting point where ```tvmc``` can be out of vendor 
specific hooks and going forward when we see any API's used across many targets 
we could bring them into ```tvmc``` infra.
   
   


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