You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/portable/executor_runner/executor_runner.cpp
+7-106Lines changed: 7 additions & 106 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
/*
2
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
-
* All rights reserved.
4
3
* Copyright 2024-2025 Arm Limited and/or its affiliates.
4
+
* All rights reserved.
5
5
*
6
6
* This source code is licensed under the BSD-style license found in the
7
7
* LICENSE file in the root directory of this source tree.
@@ -18,7 +18,6 @@
18
18
* all fp32 tensors.
19
19
*/
20
20
21
-
#include<fstream>
22
21
#include<iostream>
23
22
#include<memory>
24
23
@@ -50,16 +49,6 @@ DEFINE_string(
50
49
model_path,
51
50
"model.pte",
52
51
"Model serialized in flatbuffer format.");
53
-
DEFINE_string(inputs, "", "Comma-separated list of input files");
54
-
DEFINE_string(
55
-
output_file,
56
-
"",
57
-
"Base name of output file. If not empty output will be written to the file(s).");
58
-
59
-
DEFINE_bool(
60
-
print_all_output,
61
-
false,
62
-
"Prints all output. By default only first and last 100 elements are printed.");
63
52
DEFINE_uint32(num_executions, 1, "Number of times to run the model.");
64
53
#ifdef ET_EVENT_TRACER_ENABLED
65
54
DEFINE_string(etdump_path, "model.etdump", "Write ETDump data to this path.");
@@ -69,8 +58,6 @@ DEFINE_int32(
69
58
-1,
70
59
"Number of CPU threads for inference. Defaults to -1, which implies we'll use a heuristic to derive the # of performant cores for a specific device.");
71
60
72
-
using executorch::aten::ScalarType;
73
-
using executorch::aten::Tensor;
74
61
using executorch::extension::FileDataLoader;
75
62
using executorch::runtime::Error;
76
63
using executorch::runtime::EValue;
@@ -83,8 +70,6 @@ using executorch::runtime::MethodMeta;
83
70
using executorch::runtime::Program;
84
71
using executorch::runtime::Result;
85
72
using executorch::runtime::Span;
86
-
using executorch::runtime::Tag;
87
-
using executorch::runtime::TensorInfo;
88
73
89
74
/// Helper to manage resources for ETDump generation
90
75
classEventTraceManager {
@@ -171,31 +156,6 @@ int main(int argc, char** argv) {
0 commit comments