MCPcopy Create free account
hub / github.com/Tencent/TNN / DoubleToStringFilter

Function DoubleToStringFilter

source/tnn/utils/string_format.cc:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29std::string DoubleToStringFilter(double val) {
30 if (0 == val) {
31 return "";
32 } else {
33 return DoubleToString(val);
34 }
35}
36
37struct CmpByValue {
38 bool operator()(const std::pair<std::string, std::vector<float>> &lhs,

Callers 1

GetProfilingDataInfoMethod · 0.85

Calls 1

DoubleToStringFunction · 0.85

Tested by

no test coverage detected