File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9- #include < executorch/extension/data_loader/file_data_loader .h>
9+ #include < executorch/extension/data_loader/mmap_data_loader .h>
1010#include < executorch/runtime/executor/method.h>
1111#include < executorch/runtime/executor/program.h>
1212#include < executorch/runtime/platform/log.h>
1515#include < stdio.h>
1616
1717using namespace torch ::executor;
18- using torch::executor::util::FileDataLoader ;
18+ using torch::executor::util::MmapDataLoader ;
1919
2020static uint8_t method_allocator_pool[1024 ];
2121static uint8_t activation_pool[512 ];
@@ -35,7 +35,7 @@ int main(int argc, char** argv) {
3535
3636 MemoryManager memory_manager (&method_allocator, &planned_memory);
3737
38- Result<FileDataLoader > loader = FileDataLoader ::from (argv[1 ]);
38+ Result<MmapDataLoader > loader = MmapDataLoader ::from (argv[1 ]);
3939 ET_CHECK_MSG (
4040 loader.ok (),
4141 " FileDataLoader::from() failed: 0x%" PRIx32,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SIZE_TEST_SOURCES = [
66
77SIZE_TEST_DEPS = [
88 "//executorch/runtime/executor:program" ,
9- "//executorch/extension/data_loader:file_data_loader " ,
9+ "//executorch/extension/data_loader:mmap_data_loader " ,
1010]
1111
1212def define_common_targets ():
You can’t perform that action at this time.
0 commit comments