MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / read_longs

Function read_longs

codegeex/megatron/data/indexed_dataset.py:90–93  ·  view source on GitHub ↗
(f, n)

Source from the content-addressed store, hash-verified

88
89
90def read_longs(f, n):
91 a = np.empty(n, dtype=np.int64)
92 f.readinto(a)
93 return a
94
95
96def write_longs(f, a):

Callers 1

read_indexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected