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

Function get_stream_str

src/core/impl/comp_node/comp_node.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49std::string get_stream_str(int stream) {
50 using S = CompNode::Stream;
51 switch (stream) {
52 case S::COPY:
53 return "COPY";
54 case S::REMOTE_SEND:
55 return "REMOTE_SEND";
56 case S::LOOP_SWAP:
57 return "LOOP_SWAP";
58 default:
59 return std::to_string(stream);
60 }
61}
62
63//! resolve to actual device type if type is unspec
64CompNode::DeviceType resolve_device_type(CompNode::DeviceType type) {

Callers 1

to_stringMethod · 0.85

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected