MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / load_numpy

Function load_numpy

mlx/data/core/Numpy.cpp:321–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319static const auto* numpy_magic = "\x93NUMPY";
320
321std::shared_ptr<Array> load_numpy(const std::string& filename) {
322 std::ifstream f(filename, std::ios_base::in | std::ios_base::binary);
323
324 return load_numpy(f, filename);
325}
326
327std::shared_ptr<Array> load_numpy(
328 std::istream& stream,

Callers 1

apply_keyMethod · 0.85

Calls 5

parse_numpy_formatFunction · 0.85
itemsizeMethod · 0.80
check_streamFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected