MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / to_string_range

Function to_string_range

src/include/migraphx/stringutils.hpp:195–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194template <class Iterator>
195inline std::string to_string_range(Iterator start, Iterator last, const char* delim = ", ")
196{
197 std::stringstream ss;
198 if(start != last)
199 {
200 ss << as_number(*start);
201 std::for_each(std::next(start), last, [&](auto&& x) { ss << delim << as_number(x); });
202 }
203 return ss.str();
204}
205
206template <class Range>
207inline std::string to_string_range(const Range& r, const char* delim = ", ")

Callers 15

print_valueFunction · 0.85
preview_argumentFunction · 0.85
evalMethod · 0.85
compute_broadcasted_lensFunction · 0.85
format_shape_nameFunction · 0.85
compute_shapesMethod · 0.85
print_py_shapeFunction · 0.85
print_cpp_shapeFunction · 0.85
to_sizes_stringMethod · 0.85
shape.cppFile · 0.85

Calls 5

as_numberFunction · 0.85
for_eachFunction · 0.70
strMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected