MCPcopy Create free account
hub / github.com/THUDM/GLM / get_scatter_path

Function get_scatter_path

data_utils/lazy_loader.py:48–51  ·  view source on GitHub ↗
(path, scatter_rank)

Source from the content-addressed store, hash-verified

46
47
48def get_scatter_path(path, scatter_rank):
49 path = os.path.splitext(path)[0] + '.scatter'
50 scatter_path = os.path.join(path, str(scatter_rank))
51 return scatter_path
52
53
54def exists_scatter(path, scatter_num=64, data_type='data'):

Callers 2

get_datasetFunction · 0.85
exists_scatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected