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

Method to_sizes_string

src/shape.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229};
230
231std::string shape::to_sizes_string(const std::vector<shape>& shapes)
232{
233 std::vector<std::string> sizes;
234 std::transform(shapes.begin(), shapes.end(), std::back_inserter(sizes), [&](const shape& s) {
235 std::string r = to_string_range(s.lens(), "x");
236 if(not s.standard())
237 r += ":" + to_string_range(s.strides(), "x");
238 return r;
239 });
240 return join_strings(sizes, ", ");
241}
242
243const std::vector<shape::type_t>& shape::types()
244{

Callers

nothing calls this directly

Calls 7

to_string_rangeFunction · 0.85
join_stringsFunction · 0.85
lensMethod · 0.80
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
standardMethod · 0.45

Tested by

no test coverage detected