MCPcopy Create free account
hub / github.com/ARM-software/armnn / getNumElements

Function getNumElements

include/armnn/Numpy.hpp:314–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 }
313
314 inline unsigned int getNumElements(Header& header)
315 {
316 unsigned int numEls = 1;
317 for (auto dim: header.m_Shape)
318 {
319 numEls *= dim;
320 }
321
322 return numEls;
323 }
324
325 // Material in WriteToNumpyFile() has been reused from https://github.com/llohse/libnpy/blob/master/include/npy.hpp
326 // Please see write_header() in the above file for more details.

Callers 2

ReadTensorFromNumpyFileFunction · 0.85
PopulateTensorWithDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected