MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / code

Function code

DeepSpeedExample/megatron/data/indexed_dataset.py:104–108  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

102
103
104def code(dtype):
105 for k in dtypes.keys():
106 if dtypes[k] == dtype:
107 return k
108 raise ValueError(dtype)
109
110
111def index_file_path(prefix_path):

Callers 2

finalizeMethod · 0.70
__enter__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected