MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ToString

Function ToString

tensorflow/stream_executor/rocm/rocm_dnn.cc:70–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68PLUGIN_REGISTRY_DEFINE_PLUGIN_ID(kMIOpenPlugin);
69
70string ToString(miopenStatus_t status) {
71 switch (status) {
72 case miopenStatusSuccess:
73 return "miopenStatusSuccess";
74 case miopenStatusNotInitialized:
75 return "miopenStatusNotInitialized";
76 case miopenStatusAllocFailed:
77 return "miopenStatusAllocFailed";
78 case miopenStatusBadParm:
79 return "miopenStatusBadParm";
80 case miopenStatusInternalError:
81 return "miopenStatusInternalError";
82 case miopenStatusInvalidValue:
83 return "miopenStatusInvalidValue";
84 case miopenStatusNotImplemented:
85 return "miopenStatusNotImplemented";
86 case miopenStatusUnknownError:
87 return "miopenStatusUnknownError";
88 default:
89 return absl::StrCat("<unknown miopen status: ", static_cast<int>(status),
90 ">");
91 }
92}
93
94// RAII wrapper for all calls to MIOpen with a MIOpen handle argument.
95//

Callers 15

FindOrCreateMethod · 0.70
ClearMethod · 0.70
InitMethod · 0.70

Calls 1

StrCatFunction · 0.50

Tested by

no test coverage detected