MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / to_string

Function to_string

paddle/utils/string/to_string.h:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29template <typename T,
30 typename std::enable_if<!std::is_enum<T>::value, int>::type = 0>
31inline std::string to_string(T v) {
32 std::ostringstream sout;
33 sout << v;
34 return sout.str();
35}
36
37template <typename T,
38 typename std::enable_if<std::is_enum<T>::value, int>::type = 0>

Callers 15

test_to_string_basicMethod · 0.90
test_to_string_int32Method · 0.90
test_to_string_scalarMethod · 0.90
test_to_string_2dMethod · 0.90
test_to_string_emptyMethod · 0.90
report_size_overflowFunction · 0.50
ErrorSummaryClass · 0.50
Value2StringFunction · 0.50

Calls 2

strMethod · 0.45
nameMethod · 0.45

Tested by 15

test_to_string_basicMethod · 0.72
test_to_string_int32Method · 0.72
test_to_string_scalarMethod · 0.72
test_to_string_2dMethod · 0.72
test_to_string_emptyMethod · 0.72
ConvertRawConstraintsFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40