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

Function ToString

tensorflow/stream_executor/cuda/cuda_dnn.cc:119–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119string ToString(cudnnStatus_t status) {
120 switch (status) {
121 case CUDNN_STATUS_SUCCESS:
122 return "CUDNN_STATUS_SUCCESS";
123 case CUDNN_STATUS_NOT_INITIALIZED:
124 return "CUDNN_STATUS_NOT_INITIALIZED";
125 case CUDNN_STATUS_ALLOC_FAILED:
126 return "CUDNN_STATUS_ALLOC_FAILED";
127 case CUDNN_STATUS_BAD_PARAM:
128 return "CUDNN_STATUS_BAD_PARAM";
129 case CUDNN_STATUS_INTERNAL_ERROR:
130 return "CUDNN_STATUS_INTERNAL_ERROR";
131 case CUDNN_STATUS_INVALID_VALUE:
132 return "CUDNN_STATUS_INVALID_VALUE";
133 case CUDNN_STATUS_ARCH_MISMATCH:
134 return "CUDNN_STATUS_ARCH_MISMATCH";
135 case CUDNN_STATUS_MAPPING_ERROR:
136 return "CUDNN_STATUS_MAPPING_ERROR";
137 case CUDNN_STATUS_EXECUTION_FAILED:
138 return "CUDNN_STATUS_EXECUTION_FAILED";
139 case CUDNN_STATUS_NOT_SUPPORTED:
140 return "CUDNN_STATUS_NOT_SUPPORTED";
141 case CUDNN_STATUS_LICENSE_ERROR:
142 return "CUDNN_STATUS_LICENSE_ERROR";
143 case CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING:
144 return "CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING";
145#if CUDNN_VERSION >= 7000
146 case CUDNN_STATUS_RUNTIME_IN_PROGRESS:
147 return "CUDNN_STATUS_RUNTIME_IN_PROGRESS";
148 case CUDNN_STATUS_RUNTIME_FP_OVERFLOW:
149 return "CUDNN_STATUS_RUNTIME_FP_OVERFLOW";
150#endif
151 default:
152 return absl::StrCat("<unknown cudnn status: ", static_cast<int>(status),
153 ">");
154 }
155}
156#if CUDNN_VERSION >= 7402
157cudnnBatchNormOps_t GetBNOps(bool side_input,
158 dnn::ActivationMode activation_mode) {

Callers 15

InitMethod · 0.70
InternalInitFunction · 0.70
GetDeviceNameMethod · 0.70
CreateContextMethod · 0.70
DestroyContextMethod · 0.70
FuncSetCacheConfigMethod · 0.70
LoadPtxMethod · 0.70
AddStreamCallbackMethod · 0.70
GetModuleFunctionMethod · 0.70
GetModuleSymbolMethod · 0.70
UnloadModuleMethod · 0.70
DeviceFromContextMethod · 0.70

Calls 1

StrCatFunction · 0.50

Tested by

no test coverage detected