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

Function code

codegeex/megatron/data/indexed_dataset.py:125–129  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

123
124
125def code(dtype):
126 for k in dtypes.keys():
127 if dtypes[k] == dtype:
128 return k
129 raise ValueError(dtype)
130
131
132def index_file_path(prefix_path):

Callers 2

finalizeMethod · 0.85
__enter__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected