MCPcopy Create free account
hub / github.com/NVIDIA/DALI / to_string

Function to_string

include/dali/core/common.h:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58};
59
60inline std::string to_string(OpType op_type) {
61 switch (op_type) {
62 case OpType::CPU:
63 return "cpu";
64 case OpType::GPU:
65 return "gpu";
66 case OpType::MIXED:
67 return "mixed";
68 default:
69 return "<invalid>";
70 }
71}
72
73inline std::ostream &operator<<(std::ostream &os, OpType op_type) {
74 switch (op_type) {

Callers 3

BuildErrorStringFunction · 0.70
GetStacktraceFunction · 0.70
TaskResultsClass · 0.50

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected