MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / FilesFromTAR

Method FilesFromTAR

mlx/data/buffer/FilesFromTAR.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace buffer {
11
12FilesFromTAR::FilesFromTAR(
13 const std::string& tarfile,
14 bool nested,
15 int num_threads) {
16 core::TARReader tarreader(tarfile, nested, num_threads);
17 files_ = tarreader.get_file_list();
18}
19
20Sample FilesFromTAR::get(int64_t idx) const {
21 if (idx < 0 || idx >= files_.size()) {

Callers

nothing calls this directly

Calls 1

get_file_listMethod · 0.80

Tested by

no test coverage detected