Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/size_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <executorch/extension/data_loader/file_data_loader.h>
#include <executorch/extension/data_loader/mmap_data_loader.h>
#include <executorch/runtime/executor/method.h>
#include <executorch/runtime/executor/program.h>
#include <executorch/runtime/platform/log.h>
Expand All @@ -15,7 +15,7 @@
#include <stdio.h>

using namespace torch::executor;
using torch::executor::util::FileDataLoader;
using torch::executor::util::MmapDataLoader;

static uint8_t method_allocator_pool[1024];
static uint8_t activation_pool[512];
Expand All @@ -35,7 +35,7 @@ int main(int argc, char** argv) {

MemoryManager memory_manager(&method_allocator, &planned_memory);

Result<FileDataLoader> loader = FileDataLoader::from(argv[1]);
Result<MmapDataLoader> loader = MmapDataLoader::from(argv[1]);
ET_CHECK_MSG(
loader.ok(),
"FileDataLoader::from() failed: 0x%" PRIx32,
Expand Down
2 changes: 1 addition & 1 deletion test/targets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SIZE_TEST_SOURCES = [

SIZE_TEST_DEPS = [
"//executorch/runtime/executor:program",
"//executorch/extension/data_loader:file_data_loader",
"//executorch/extension/data_loader:mmap_data_loader",
]

def define_common_targets():
Expand Down
Loading