| 420 | |
| 421 | template <typename Func> |
| 422 | static auto GetOverloadMethod(std::string name, Func&& func) { |
| 423 | using WrapFn = decltype(WrapFunction(std::forward<Func>(func))); |
| 424 | using OverloadFn = ::tvm::ffi::details::OverloadedFunction<std::decay_t<WrapFn>>; |
| 425 | return ffi::Function::FromPackedInplace<OverloadFn>(WrapFunction(std::forward<Func>(func)), |
| 426 | std::move(name)); |
| 427 | } |
| 428 | |
| 429 | template <typename Func> |
| 430 | static auto NewOverload(std::string name, Func&& func) { |
nothing calls this directly
no outgoing calls
no test coverage detected