From 5abfe13b38fad81070b2ac5c04344a3ae5ee423e Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Sat, 5 Oct 2024 16:44:50 -0700 Subject: [PATCH] Update runtime-build-and-cross-compilation.md (#5452) Summary: Update the output of executor runner on the tutorial `add.pte` Pull Request resolved: https://github.com/pytorch/executorch/pull/5452 Reviewed By: mergennachin Differential Revision: D63934482 Pulled By: dvorjackz fbshipit-source-id: 4933508d21f6965e0fcddd0caf5bf0ec1acc69ee --- .../runtime-build-and-cross-compilation.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/source/runtime-build-and-cross-compilation.md b/docs/source/runtime-build-and-cross-compilation.md index 5ad64cb24c..4d42357618 100644 --- a/docs/source/runtime-build-and-cross-compilation.md +++ b/docs/source/runtime-build-and-cross-compilation.md @@ -98,21 +98,20 @@ If it worked, you should see the message "Model executed successfully" followed by the output values. ``` -I 00:00:00.002052 executorch:executor_runner.cpp:75] Model file add.pte is loaded. -I 00:00:00.002086 executorch:executor_runner.cpp:85] Running method forward -I 00:00:00.002092 executorch:executor_runner.cpp:140] Setting up non-const buffer 1, size 48. -I 00:00:00.002149 executorch:executor_runner.cpp:181] Method loaded. -I 00:00:00.002154 executorch:util.h:105] input already initialized, refilling. -I 00:00:00.002157 executorch:util.h:105] input already initialized, refilling. -I 00:00:00.002159 executorch:executor_runner.cpp:186] Inputs prepared. -I 00:00:00.011684 executorch:executor_runner.cpp:195] Model executed successfully. -I 00:00:00.011709 executorch:executor_runner.cpp:210] 8.000000 +I 00:00:00.000526 executorch:executor_runner.cpp:82] Model file add.pte is loaded. +I 00:00:00.000595 executorch:executor_runner.cpp:91] Using method forward +I 00:00:00.000612 executorch:executor_runner.cpp:138] Setting up planned buffer 0, size 48. +I 00:00:00.000669 executorch:executor_runner.cpp:161] Method loaded. +I 00:00:00.000685 executorch:executor_runner.cpp:171] Inputs prepared. +I 00:00:00.000764 executorch:executor_runner.cpp:180] Model executed successfully. +I 00:00:00.000770 executorch:executor_runner.cpp:184] 1 outputs: +Output 0: tensor(sizes=[1], [2.]) ``` ## Cross compilation -Follwing are instruction on how to perform cross compilation for Android and iOS. +Following are instruction on how to perform cross compilation for Android and iOS. ### Android - Prerequisite: [Android NDK](https://developer.android.com/ndk), choose one of the following: