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

Method elements

src/shape_transform_descriptor.cpp:1924–1931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1922}
1923
1924std::size_t shape_transform_descriptor::elements() const
1925{
1926 return transform_accumulate(dimensions.begin(),
1927 dimensions.end(),
1928 std::size_t{1},
1929 std::multiplies<>{},
1930 [](const auto& s) { return s.len(); });
1931}
1932std::vector<std::size_t>
1933shape_transform_descriptor::common_dims(const std::vector<std::size_t>& input_dims) const
1934{

Callers 2

apply_reshape_implMethod · 0.95

Calls 4

transform_accumulateFunction · 0.85
lenMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected