Skip to content

Commit 5be3346

Browse files
committed
more warmup
1 parent 5dc76fe commit 5be3346

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

examples/portable/executor_runner/executor_runner.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,6 @@ int main(int argc, char** argv) {
256256
ET_LOG(Info, "Warm up complete.");
257257

258258
// Run the model.
259-
for (uint32_t i = 0; i < FLAGS_num_iters; i++) {
260-
Error status = method->execute();
261-
ET_CHECK_MSG(
262-
status == Error::Ok,
263-
"Execution of method %s failed with status 0x%" PRIx32,
264-
method_name,
265-
(uint32_t)status);
266-
}
267259
for (uint32_t i = 0; i < FLAGS_num_iters; i++) {
268260
EXECUTORCH_PROFILE_CREATE_BLOCK("inference loop");
269261
uint32_t prof_tok = EXECUTORCH_BEGIN_PROF("run model");

extension/benchmark/android/benchmark/android-llm-device-farm-test-spec.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ phases:
125125
adb -s $DEVICEFARM_DEVICE_UDID shell am start -W -n org.pytorch.minibench/.BenchmarkActivity \
126126
--es "model_dir" "/data/local/tmp/minibench"
127127
fi
128-
adb -s $DEVICEFARM_DEVICE_UDID shell /data/local/tmp/minibench/xnn_executor_runner --model_path /data/local/tmp/minibench/*.pte --prof_result_path /data/local/tmp/prof_result.bin
128+
adb -s $DEVICEFARM_DEVICE_UDID shell /data/local/tmp/minibench/xnn_executor_runner --model_path /data/local/tmp/minibench/*.pte --prof_result_path /data/local/tmp/prof_result.bin --num_warmup_iters 10
129129
adb -s $DEVICEFARM_DEVICE_UDID pull /data/local/tmp/prof_result.bin
130130
python -m profiler.profiler_results_cli --prof_results_bin prof_result.bin
131131

0 commit comments

Comments
 (0)