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
Copy file name to clipboardExpand all lines: compile_tensorflow_cpp.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,19 @@
2
2
3
3
Building TensorFlow C++ API is very tricky and can be a pain as there is not much information you can find about it even on TensorFlow's official documentation. Following you will find a step-by-step instruction showing how to build TensorFlow C++ v2 on Linux. It works well for my Ubuntu 20.04 running on AMD Ryzen processors.
4
4
5
-
In this page I will walk you through the steps to install TensorFlow C++ API version 2.7.
5
+
In this page I will walk you through the steps to install **TensorFlow C++ API version 2.7**.
6
6
7
7
## Dependencies
8
8
9
9
- Conda
10
-
- Python 3.9.9
11
-
- GCC 5 or newer
12
-
- Bazel 3.7.2
13
-
- Protobuf 3.9.2 (must be compatible with the version of TensorFlow-built protobuf or protoc)
10
+
- Python
11
+
- GCC 5 or higher
12
+
- Bazel*
13
+
- Protobuf*
14
14
15
-
Check a list of supported Python version, compiler, and bazel at https://www.tensorflow.org/install/source#tested_build_configurations.
15
+
*a supported version depends on the version of TensorFlow. For TensorFlow v2.7, Python 3.9.9, GCC 10.3.0, Bazel 3.7.2, and Protobuf 3.9.2 work for me.
16
+
17
+
A list of supported Python, compiler, and Bazel can be found [here](https://www.tensorflow.org/install/source#tested_build_configurations).
16
18
17
19
---
18
20
@@ -28,6 +30,8 @@ conda update --all -y
28
30
29
31
### 2. Install bazel
30
32
33
+
Check a supported version at `tensorflow/.bazelversion`.
0 commit comments