MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeedExamples / get_ext

Function get_ext

Megatron-LM/data_utils/__init__.py:40–42  ·  view source on GitHub ↗

gets path extension

(path)

Source from the content-addressed store, hash-verified

38 return max(split)/sum(split) != 1.
39
40def get_ext(path):
41 """gets path extension"""
42 return os.path.splitext(path)[1]
43
44def get_dataset(path, **kwargs):
45 """gets dataset object based on keyword args and file at `path`"""

Callers 1

get_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected