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

Function LoadArrayFromNumpy

lite/example/cpp_example/npy.h:561–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560template <typename Scalar>
561inline void LoadArrayFromNumpy(
562 const std::string& filename, std::vector<unsigned long>& shape,
563 std::vector<Scalar>& data) {
564 bool fortran_order;
565 LoadArrayFromNumpy<Scalar>(filename, shape, fortran_order, data);
566}
567
568template <typename Scalar>
569inline void LoadArrayFromNumpy(

Callers 1

parse_npyMethod · 0.70

Calls 8

resizeMethod · 0.80
read_headerFunction · 0.70
parse_headerFunction · 0.70
comp_sizeFunction · 0.70
strMethod · 0.45
readMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected