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

Function get_ext

data_utils/__init__.py:47–49  ·  view source on GitHub ↗

gets path extension

(path)

Source from the content-addressed store, hash-verified

45
46
47def get_ext(path):
48 """gets path extension"""
49 return os.path.splitext(path)[1]
50
51
52def get_dataset(name, tokenizer, pre_tokenize, data_parallel_rank, loader_scatter=None, no_lazy_loader=False,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected