Lunderberg opened a new pull request, #16542:
URL: https://github.com/apache/tvm/pull/16542

   Prior to this commit, calls from Relax to external PackedFuncs could only be 
done through the TVM global registry.  While Relax functions accepting a 
callback could be written as `callback_arg: R.Callable(arg_struct_info, 
ret_struct_info)`, attempting to compile these functions would raise an error 
during the `CodeGenVM` step of `relax.build`.  In addition, the global registry 
is only queried when initializing the `relax.VirtualMachine`, and so later 
changes requires restarting the VM.
   
   This commit updates both the `CodeGenVM` lowering pass and the relax VM to 
support callbacks.  The motivating use case is with the `LazyTransformParams` 
pass, to improve flexibility by avoiding use of the global registry.


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