MCPcopy Create free account
hub / github.com/apache/tvm-ffi / GetOverloadMethod

Method GetOverloadMethod

include/tvm/ffi/reflection/overload.h:422–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected