MCPcopy Create free account
hub / github.com/apple/axlearn / get_data_dir

Function get_data_dir

axlearn/common/utils.py:1559–1562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1557 # Use type() so that if in_tree is a VDict, out_tree is also a VDict.
1558 out_tree = type(in_tree)()
1559 for k, v in in_tree.items():
1560 path = _concat(prefix=prefix, suffix=k, separator=separator)
1561 v = prune_tree(v, should_prune, prefix=path, separator=separator)
1562 if not should_prune(path, v):
1563 out_tree[k] = v
1564 in_tree = out_tree
1565 return in_tree

Callers 15

wrapperFunction · 0.90
source_configFunction · 0.90
_vocab_configFunction · 0.90
_input_fnFunction · 0.90
input_configFunction · 0.90
vocabFunction · 0.90
_train_input_sourceFunction · 0.90
__init__Method · 0.90
fnFunction · 0.90
target_to_sourceMethod · 0.90
tfds_datasetFunction · 0.90

Calls 1

getMethod · 0.80

Tested by 5

test_pipelineMethod · 0.72
test_get_and_setMethod · 0.72
test_output_writerMethod · 0.72