Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AIS-SNU/Smart-Infinity
/ read_longs
Function
read_longs
DeepSpeedExample/megatron/data/indexed_dataset.py:82–85 ·
view source on GitHub ↗
(f, n)
Source
from the content-addressed store, hash-verified
80
81
82
def
read_longs(f, n):
83
a = np.empty(n, dtype=np.int64)
84
f.readinto(a)
85
return
a
86
87
88
def
write_longs(f, a):
Callers
1
read_index
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected