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

   This PR introduces a convenient method `PackArgs` that allows packing 
variadic C++ parameters into TVM's PackedFunc calling convention without 
recursion using C++ parameter pack tricks.
   
   As an example,
   
   ```C++
   template <typename... Args>
   void MyVariadicMethod(Args&&... args) {
     constexpr int kNumArgs = sizeof...(Args);
     TVMValue values[kNumArgs];
     int type_codes[kNumArgs];
     tvm::runtime::PackArgs(values, type_codes, std::forward<Args>(args)...);
     ...
   }
   ```


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