MCPcopy
hub / github.com/dmlc/dgl / read

Method read

tools/distpartitioning/array_readwriter/numpy_array.py:14–18  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

12 pass
13
14 def read(self, path):
15 logging.debug("Reading from %s using numpy format" % path)
16 arr = np.load(path, mmap_mode="r")
17 logging.debug("Done reading from %s" % path)
18 return arr
19
20 def write(self, path, arr):
21 logging.debug("Writing to %s using numpy format" % path)

Callers

nothing calls this directly

Calls 2

debugMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected