MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / comp_size

Function comp_size

lite/example/cpp_example/npy.h:532–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532inline ndarray_len_t comp_size(const std::vector<ndarray_len_t>& shape) {
533 ndarray_len_t size = 1;
534 for (ndarray_len_t i : shape)
535 size *= i;
536
537 return size;
538}
539
540template <typename Scalar>
541inline void SaveArrayAsNumpy(

Callers 2

SaveArrayAsNumpyFunction · 0.70
LoadArrayFromNumpyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected