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

Method len

src/shape_transform_descriptor.cpp:1915–1922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1913}
1914
1915std::size_t dimension::len() const
1916{
1917 return transform_accumulate(subdimensions.begin(),
1918 subdimensions.end(),
1919 std::size_t{1},
1920 std::multiplies<>{},
1921 [](const auto& s) { return s.len; });
1922}
1923
1924std::size_t shape_transform_descriptor::elements() const
1925{

Callers 15

get_final_lensFunction · 0.80
TEST_CASEFunction · 0.80
is_broadcast_onlyFunction · 0.80
applyMethod · 0.80
apply_reshape_implMethod · 0.80
apply_broadcastMethod · 0.80
is_broadcast_dimFunction · 0.80
collapse_1_dimsFunction · 0.80
insert_empty_1sFunction · 0.80
make_reshape_squeezeFunction · 0.80
generateMethod · 0.80

Calls 3

transform_accumulateFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected