You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.[Install USB Memory as Swap](#3-install-a-memory-drive-as-swap-for-compiling)
26
-
4.[Build Bazel](#4-build-bazel)
27
-
5.[Compiling TensorFlow](#5-compiling-tensorflow)
28
-
6.[Cleaning Up](#6-cleaning-up)
29
-
7.[References](#references)
24
+
2.[Install USB Memory as Swap](#2-install-a-memory-drive-as-swap-for-compiling)
25
+
3.[Build Bazel](#3-build-bazel)
26
+
4.[Compiling TensorFlow](#4-compiling-tensorflow)
27
+
5.[Cleaning Up](#5-cleaning-up)
28
+
6.[References](#references)
30
29
31
30
## The Build
32
31
@@ -81,39 +80,7 @@ mkdir tf
81
80
cd tf
82
81
```
83
82
84
-
### 2. Build Protobuf
85
-
86
-
Clone the Protobuf repository.
87
-
88
-
```shell
89
-
git clone https://github.com/google/protobuf.git
90
-
```
91
-
92
-
Now move into the new `protobuf` directory, configure it, and `make` it. _Note: this takes a little while._
93
-
94
-
```shell
95
-
cd protobuf
96
-
git checkout v3.1.0
97
-
./autogen.sh
98
-
./configure
99
-
make -j 4
100
-
sudo make install
101
-
sudo ldconfig
102
-
```
103
-
104
-
Great! You should now have `protoc` installed in `/usr/local/bin`, and should be on your `PATH`. Check to make sure it's working correctly:
105
-
106
-
```shell
107
-
protoc --version
108
-
```
109
-
110
-
Now that we have the `protoc` compiler, let's install a USB stick as additional swap memory.
111
-
112
-
```
113
-
cd ..
114
-
```
115
-
116
-
### 3. Install a Memory Drive as Swap for Compiling
83
+
### 2. Install a Memory Drive as Swap for Compiling
117
84
118
85
In order to succesfully build TensorFlow, your Raspberry Pi needs a little bit more memory to fall back on. Fortunately, this process is pretty straightforward. Grab a USB storage drive that has at least 1GB of memory. I used a flash drive I could live without that carried no important data. That said, we're only going to be using the drive as swap while we compile, so this process shouldn't do too much damage to a relatively new USB drive.
119
86
@@ -174,7 +141,7 @@ sudo nano /etc/fstab
174
141
175
142
Alright! You've got swap! Don't throw out the `/dev/XXX` information yet- you'll need it to remove the device safely later on.
176
143
177
-
### 4. Build Bazel
144
+
### 3. Build Bazel
178
145
179
146
To build [Bazel](https://github.com/bazelbuild/bazel), we're going to need to download a zip file containing a distribution archive. Let's do that now and extract it into a new directory called `bazel`:
180
147
@@ -278,7 +245,7 @@ Move out of the `bazel` directory, and we'll move onto the next step.
278
245
cd ..
279
246
```
280
247
281
-
### 5. Compiling TensorFlow
248
+
### 4. Compiling TensorFlow
282
249
283
250
First things first, clone the TensorFlow repository and move into the newly created directory.
Copy file name to clipboardexpand all lines: README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,13 @@ _We did it!_ It took a lot of head-banging and several indirect passings-of-the-
20
20
21
21
**Note: These are unofficial binaries (though built from the minimally modified official source), and thus there is no expectation of support from the TensorFlow team. Please don't create issues for these files in the official TensorFlow repository.**
22
22
23
-
This is the easiest way to get TensorFlow onto your Raspberry Pi 3. Note that currently, the pre-built binary is targeted for Raspberry Pi 3 running Raspbian 8.0 ("Jessie"), so this may or may not work for you.
23
+
This is the easiest way to get TensorFlow onto your Raspberry Pi 3. Note that currently, the pre-built binary is targeted for Raspberry Pi 3 running Raspbian 8.0 ("Jessie"), so this may or may not work for you. The specific OS release is the following:
0 commit comments