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

Function get_all_lens

test/shape_transform_descriptor.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40using axes_map = std::vector<std::vector<std::size_t>>;
41
42static all_lens get_all_lens(const shape_transform_descriptor& d)
43{
44 all_lens result;
45 std::transform(
46 d.dimensions.begin(), d.dimensions.end(), std::back_inserter(result), [](const auto& dim) {
47 std::vector<std::size_t> sub_lens;
48 std::transform(dim.subdimensions.begin(),
49 dim.subdimensions.end(),
50 std::back_inserter(sub_lens),
51 [](const auto& x) { return x.len; });
52 return sub_lens;
53 });
54 return result;
55}
56
57static final_lens get_final_lens(const shape_transform_descriptor& d)
58{

Callers 1

TEST_CASEFunction · 0.85

Calls 3

transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected