From a1777330b0f9b4dcea0978e21f3801e7e35edf2a Mon Sep 17 00:00:00 2001 From: pu1p <20255635+pullp@users.noreply.github.com> Date: Tue, 21 Dec 2021 20:50:20 +0800 Subject: [PATCH] doc(demos/PyTorch): fix wrong message in README Step 2 and 3 should be executed inside the container, not on host. The demo's dir is ` /root/demos/pytorch`, not ` /root/occlum/demos/pytorch` --- demos/pytorch/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/demos/pytorch/README.md b/demos/pytorch/README.md index 19c95edd..b05eb2d6 100644 --- a/demos/pytorch/README.md +++ b/demos/pytorch/README.md @@ -18,15 +18,14 @@ docker pull occlum/occlum:0.23.0-ubuntu18.04 docker run -it --name=pythonDemo --device /dev/sgx/enclave occlum/occlum:0.23.0-ubuntu18.04 bash ``` -Step 2 (on the host): Download miniconda and install python to prefix position. +Step 2 (in the Occlum container): Download miniconda and install python to prefix position. ``` -cd /root/occlum/demos/pytorch +cd /root/demos/pytorch bash ./install_python_with_conda.sh ``` -Step 3 (on the host): Run the sample code on Occlum +Step 3 (in the Occlum container): Run the sample code on Occlum ``` -cd /root/occlum/demos/pytorch +cd /root/demos/pytorch bash ./run_pytorch_on_occlum.sh ``` -