From d7c20ddf555c9e308d1fadedc73d723040039565 Mon Sep 17 00:00:00 2001 From: Thomas Fritz Date: Mon, 18 Sep 2023 12:46:32 +0200 Subject: [PATCH] Add missing model tracing step to cpp example readme, fixes #7952 (#7963) Co-authored-by: Philip Meier --- examples/cpp/hello_world/README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/cpp/hello_world/README.rst b/examples/cpp/hello_world/README.rst index 81161112034..68b10a65b3c 100644 --- a/examples/cpp/hello_world/README.rst +++ b/examples/cpp/hello_world/README.rst @@ -10,6 +10,7 @@ Once both dependencies are sorted, we can start the CMake fun: 1) Create a ``build`` directory inside the current one. 2) from within the ``build`` directory, run the following commands: + - ``python ../trace_model.py`` To use a torchvision model in C++, you must first export it from the python version of torchvision. More information can be found on the corresponding `documentation page `_. - | ``cmake -DCMAKE_PREFIX_PATH=";" ..`` | where ```` and ```` are the paths to the libtorch and torchvision installations. - ``cmake --build .``