Skip to content

Commit 784af42

Browse files
author
lind
committed
testing size from changing data loader
1 parent cd565b5 commit 784af42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/size_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>
@@ -15,7 +15,7 @@
1515
#include <stdio.h>
1616

1717
using namespace torch::executor;
18-
using torch::executor::util::FileDataLoader;
18+
using torch::executor::util::MmapDataLoader;
1919

2020
static uint8_t method_allocator_pool[1024];
2121
static 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,

test/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SIZE_TEST_SOURCES = [
66

77
SIZE_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

1212
def define_common_targets():

0 commit comments

Comments
 (0)