MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Add

Method Add

oneflow/core/control/rpc_server.h:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59 template<typename F>
60 void Add(F f) {
61 using args_type = typename function_traits<F>::args_type;
62 using arg_type =
63 typename std::remove_pointer<typename std::tuple_element<0, args_type>::type>::type;
64
65 std::get<arg_type::value>(handlers_) = std::move(f);
66 }
67
68 virtual void OnLoadServer(CtrlCall<CtrlMethod::kLoadServer>* call) = 0;
69

Callers 2

InitProcessCtxMethod · 0.45
InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected