MCPcopy Create free account
hub / github.com/NVIDIA/DALI / generate_temp_extract

Function generate_temp_extract

dali/test/python/webdataset_base.py:116–123  ·  view source on GitHub ↗
(tar_file_path)

Source from the content-addressed store, hash-verified

114
115
116def generate_temp_extract(tar_file_path):
117 temp_extract_dir = tempfile.TemporaryDirectory()
118 archive = tarfile.open(tar_file_path)
119 for member in archive:
120 if member.type != tarfile.REGTYPE:
121 continue
122 archive.extract(member, temp_extract_dir.name)
123 return temp_extract_dir

Callers 6

test_return_emptyFunction · 0.90
test_skip_sampleFunction · 0.90
test_wds_shardingFunction · 0.90
test_shardingFunction · 0.90
test_index_generationFunction · 0.90

Calls 1

openMethod · 0.45

Tested by 6

test_return_emptyFunction · 0.72
test_skip_sampleFunction · 0.72
test_wds_shardingFunction · 0.72
test_shardingFunction · 0.72
test_index_generationFunction · 0.72