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

Function num2str

src/core/impl/utils/debug.cpp:329–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327// if not in MGB_ENABLE_LOGGING, num2str would become defined but not used
328template <typename T>
329std::string num2str(T val) {
330 return std::to_string(val);
331}
332
333std::string num2str(float val) {
334 union V {

Callers 1

do_compare_tensor_valueFunction · 0.85

Calls 3

to_stringFunction · 0.85
good_floatFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected