Skip to content

Commit 8f61f7a

Browse files
committed
Update tensorflow 2.17.0.
1 parent cd859da commit 8f61f7a

File tree

2 files changed

+14
-26
lines changed

2 files changed

+14
-26
lines changed

tutorials/tensorflow/tensorflow-zh.md

+7-13
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
bazel --version # 确保版本是6.5.0即可.
2323
```
2424

25-
3. 下载并解压`tensorflow 2.16.1`.
25+
3. 下载并解压`tensorflow 2.17.0`.
2626

2727
```shell
28-
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.16.1.zip
29-
unzip v2.16.1.zip
30-
cd tensorflow-2.16.1
28+
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.17.0.zip
29+
unzip v2.17.0.zip
30+
cd tensorflow-2.17.0
3131
```
3232

3333
4. 设置环境变量`TF_PYTHON_VERSION`.
@@ -45,19 +45,13 @@
4545
6. 构建`tensorflow`(在作者本人的`M1 MacBook Pro 16GB`大概需要`70`分钟).
4646

4747
```shell
48-
bazel build //tensorflow/tools/pip_package:build_pip_package
48+
bazel build //tensorflow/tools/pip_package:wheel
4949
```
5050

51-
7. 在当前目录下, 生成`whl`文件.
52-
53-
```shell
54-
./bazel-bin/tensorflow/tools/pip_package/build_pip_package ./
55-
```
56-
57-
8. 安装`whl`文件.
51+
7. 安装`whl`文件.
5852

5953
```shell
60-
pip install ./*.whl
54+
pip install ./bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl
6155
```
6256

6357
## Tips

tutorials/tensorflow/tensorflow.md

+7-13
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ Please use `Xcode 15.3` and `Apple clang version 15.0.0 (clang-1500.3.9.4)` or l
2222
bazel --version # Make sure the version is 6.5.0.
2323
```
2424

25-
3. Download and extract `tensorflow 2.16.1`.
25+
3. Download and extract `tensorflow 2.17.0`.
2626

2727
```shell
28-
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.16.1.zip
29-
unzip v2.16.1.zip
30-
cd tensorflow-2.16.1
28+
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.17.0.zip
29+
unzip v2.17.0.zip
30+
cd tensorflow-2.17.0
3131
```
3232

3333
4. Set the environment variable `TF_PYTHON_VERSION`.
@@ -45,21 +45,15 @@ Please use `Xcode 15.3` and `Apple clang version 15.0.0 (clang-1500.3.9.4)` or l
4545
6. Build `tensorflow` (which takes approximately `70` minutes on the author's M1 MacBook Pro `16`GB).
4646
4747
```shell
48-
bazel build //tensorflow/tools/pip_package:build_pip_package
48+
bazel build //tensorflow/tools/pip_package:wheel
4949
```
5050
51-
7. In the current directory, generate the `whl` file.
51+
7. Install the `whl` file.
5252
5353
```shell
54-
./bazel-bin/tensorflow/tools/pip_package/build_pip_package ./
54+
pip install ./bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl
5555
```
5656
57-
8. Install the `whl` file.
58-
59-
```shell
60-
pip install ./*.whl
61-
```
62-
6357
## Tips
6458
6559
1. Please ensure that your network is stable during the compilation process, and the compilation needs to use the network.

0 commit comments

Comments
 (0)