From 454195592520a68033aaf123c083e1ff7d9bb719 Mon Sep 17 00:00:00 2001 From: Marcin Sielski Date: Mon, 18 May 2020 16:58:01 +0200 Subject: [PATCH] Add clone step to native build instrunction. Why: * Improve the documentation. This change addresses the need by: * Add clone repository step, * Change rpi_armv7 to rpi_armv6 . --- tensorflow/lite/g3doc/guide/build_rpi.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tensorflow/lite/g3doc/guide/build_rpi.md b/tensorflow/lite/g3doc/guide/build_rpi.md index 4a39f4e7677..c75b39cd7e5 100644 --- a/tensorflow/lite/g3doc/guide/build_rpi.md +++ b/tensorflow/lite/g3doc/guide/build_rpi.md @@ -29,7 +29,7 @@ To cross compile TensorFlow Lite follow the steps: 2. Clone TensorFlow repository: ```bash - git clone --depth 1 https://github.com/tensorflow/tensorflow.git tensorflow_src + git clone https://github.com/tensorflow/tensorflow.git tensorflow_src ``` @@ -74,7 +74,14 @@ To natively compile TensorFlow Lite follow the steps: sudo apt-get install build-essential ``` -2. Run following script at the root of the TensorFlow repository to download all the +2. Clone TensorFlow repository: + + ```bash + git clone https://github.com/tensorflow/tensorflow.git tensorflow_src + + ``` + +3. Run following script at the root of the TensorFlow repository to download all the build dependencies: ```bash @@ -83,11 +90,11 @@ build dependencies: **Note:** You only need to do this once. -3. You should then be able to compile TensorFlow Lite with: +4. You should then be able to compile TensorFlow Lite with: ```bash ./tensorflow/lite/tools/make/build_rpi_lib.sh ``` **Note:** This should compile a static library in: - `tensorflow/lite/tools/make/gen/lib/rpi_armv7/libtensorflow-lite.a`. + `tensorflow/lite/tools/make/gen/lib/rpi_armv6/libtensorflow-lite.a`.