MCPcopy Create free account
hub / github.com/Arm-Examples/ML-examples / get_num_elems

Function get_num_elems

kleidiai-examples/audiogen-et/app/main.cpp:193–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static size_t get_num_elems(const std::vector<executorch::aten::SizesType>& tensor_dims) {
194 size_t numel = 1;
195 for (const auto& dim : tensor_dims) {
196 numel *= dim;
197 }
198 return numel;
199}
200
201static void dry_run(std::unique_ptr<executorch::extension::Module>& module) {
202

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected