MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / toString

Function toString

gpu.hpp:223–235  ·  view source on GitHub ↗

* @brief Converts NumType to string. */

Source from the content-addressed store, hash-verified

221 * @brief Converts NumType to string.
222 */
223inline std::string toString(NumType type) {
224 switch (type) {
225 case kf16:
226 return "f16";
227 case kf32:
228 return "f32";
229 case ki32:
230 return "i32";
231 default:
232 LOG(kDefLog, kError, "Invalid NumType in string conversion.");
233 return "unknown";
234 }
235}
236
237/**
238 * @brief Converts Shape to string. The string formatting is meant to be

Callers 14

KernelCodeMethod · 0.70
createMatmul1Function · 0.50
createMatmul2Function · 0.50
createMatmul3Function · 0.50
createMatmul4Function · 0.50
createNoOpFunction · 0.50
selectMatmulFunction · 0.50
createTranspose1Function · 0.50
createTranspose2Function · 0.50
selectTransposeFunction · 0.50

Calls 1

LOGFunction · 0.85

Tested by 1

testGeluFunction · 0.40