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

Function get_tensor_dims

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

Source from the content-addressed store, hash-verified

186}
187
188static std::vector<executorch::aten::SizesType> get_tensor_dims(const TensorInfo& tensor_info) {
189 std::vector<executorch::aten::SizesType> tensor_dims(tensor_info.sizes().begin(), tensor_info.sizes().end());
190 return tensor_dims;
191}
192
193static size_t get_num_elems(const std::vector<executorch::aten::SizesType>& tensor_dims) {
194 size_t numel = 1;

Callers 2

dry_runFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected