MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / split_address

Function split_address

imperative/src/impl/ops/collective_comm.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39std::tuple<std::string, std::string> split_address(
40 const std::string& address_and_port) {
41 auto index = address_and_port.find_last_of(':');
42 mgb_assert(index != std::string::npos, "missing ':' in server address");
43 return {address_and_port.substr(0, index), address_and_port.substr(index + 1)};
44}
45
46std::shared_ptr<OpDef> make_from_op_node(cg::OperatorNodeBase* node) {
47 auto&& comm = node->cast_final_safe<opr::CollectiveComm>();

Callers 1

make_from_op_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected