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

Method to_common_from_src

src/shape_transform_descriptor.cpp:1730–1741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1728}
1729
1730shape_transform_descriptor shape_transform_descriptor::to_common_from_src() const
1731{
1732 shape_transform_descriptor result;
1733 auto subs = get_all_subdimensions(this->dimensions);
1734 std::transform(subs.begin(),
1735 subs.end(),
1736 std::back_inserter(result.dimensions),
1737 [&](const auto& x) -> dimension { return {{x}}; });
1738 result.rank = this->rank;
1739 result.simplify();
1740 return result;
1741}
1742shape_transform_descriptor shape_transform_descriptor::to_common_from_dst() const
1743{
1744 shape_transform_descriptor result;

Callers 3

TEST_CASEFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 5

get_all_subdimensionsFunction · 0.85
simplifyMethod · 0.80
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected