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

Function LoadArrayFromNumpy

lite/load_and_run/src/helpers/npy.h:550–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548
549template <typename Scalar>
550inline void LoadArrayFromNumpy(
551 const std::string& filename, std::vector<unsigned long>& shape,
552 std::vector<Scalar>& data) {
553 bool fortran_order;
554 LoadArrayFromNumpy<Scalar>(filename, shape, fortran_order, data);
555}
556
557template <typename Scalar>
558inline 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