MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / total_size

Method total_size

arm_compute/core/TensorShape.h:177–180  ·  view source on GitHub ↗

Collapses all dimensions to a single linear total size. * * @return The total tensor size in terms of elements. */

Source from the content-addressed store, hash-verified

175 * @return The total tensor size in terms of elements.
176 */
177 size_t total_size() const
178 {
179 return std::accumulate(_id.begin(), _id.end(), size_t(1), std::multiplies<size_t>());
180 }
181 /** Collapses given dimension and above.
182 *
183 * @param[in] dimension Size of the wanted dimension

Callers

nothing calls this directly

Calls 3

accumulateFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected