Skip to content

Commit 535df22

Browse files
committed
Update tensorflow 2.20.0.
1 parent 6640eb2 commit 535df22

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

README-zh.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
*`tensorflow 2.13.0`开始官方提供Apple 芯片的支持和`Python 3.11`的支持.
1616
*`tensorflow 2.14.0`开始移除了`Python 3.8`的支持.
1717
*`tensorflow 2.16.1`开始提供`Python 3.12`的支持.
18+
*`tensorflow 2.20.0`开始提供`Python 3.13`的支持.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ This Repo will provide TensorFlow libraries and extended build tutorials that re
1515
* Official support for `Apple silicon` and `Python 3.11` was introduced starting from `tensorflow 2.13.0`.
1616
* Starting from `tensorflow 2.14.0`, support for `Python 3.8` has been removed.
1717
* Support for `Python 3.12` is provided starting from `tensorflow 2.16.1`.
18+
* Support for `Python 3.13` is provided starting from `tensorflow 2.20.0`.

tutorials/tensorflow/tensorflow-zh.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@
99
1. 创建新的环境.
1010

1111
```shell
12-
conda create -n tensorflow-macos python=3.12 # 这里Python版本也可以使用Python 3.9, 3.10和3.11.
12+
conda create -n tensorflow-macos python=3.13 # 这里Python版本也可以使用Python 3.9, 3.10, 3.11和3.12.
1313
conda activate tensorflow-macos
1414
```
1515

16-
2. 安装`bazel 6.5.0`.
16+
2. 安装`bazel 7.4.1`.
1717

1818
```shell
19-
wget https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel-6.5.0-darwin-arm64 -O bazel
19+
wget https://github.com/bazelbuild/bazel/releases/download/7.4.1/bazel-7.4.1-darwin-arm64 -O bazel
2020
chmod +x bazel
2121
sudo mv bazel /usr/local/bin/
22-
bazel --version # 确保版本是6.5.0即可.
22+
bazel --version # 确保版本是7.4.1即可.
2323
```
2424

25-
3. 下载并解压`tensorflow 2.19.0`.
25+
3. 下载并解压`tensorflow 2.20.0`.
2626

2727
```shell
28-
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.19.0.zip
29-
unzip v2.19.0.zip
30-
cd tensorflow-2.19.0
28+
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.20.0.zip
29+
unzip v2.20.0.zip
30+
cd tensorflow-2.20.0
3131
```
3232

3333
4. 设置环境变量`TF_PYTHON_VERSION`.
3434

3535
```shell
36-
export TF_PYTHON_VERSION=3.12 # 请和上面的Python版本对应.
36+
export TF_PYTHON_VERSION=3.13 # 请和上面的Python版本对应.
3737
```
3838

3939
5. 配置build.
@@ -42,7 +42,7 @@
4242
./configure # 请全部使用默认选项.
4343
```
4444

45-
6. 构建`tensorflow`(在作者本人的`M1 MacBook Pro 16GB`大概需要`70`分钟).
45+
6. 构建`tensorflow`(在作者本人的`M4 Mac mini 32GB`大概需要`55`分钟).
4646

4747
```shell
4848
bazel build //tensorflow/tools/pip_package:wheel
@@ -51,6 +51,7 @@
5151
7. 安装`whl`文件.
5252

5353
```shell
54+
mv ./bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl ./bazel-bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.20.0-cp313-cp313-macosx_12_0_arm64.whl # 请和上面的tensorflow, Python版本对应.
5455
pip install ./bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl
5556
```
5657

tutorials/tensorflow/tensorflow.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@ Please use `Xcode 15.3` and `Apple clang version 15.0.0 (clang-1500.3.9.4)` or l
99
1. Create a new Env.
1010

1111
```shell
12-
conda create -n tensorflow-macos python=3.12 # Python 3.9, 3.10 and 3.11 are also supported.
12+
conda create -n tensorflow-macos python=3.13 # Python 3.9, 3.10, 3.11 and 3.12 are also supported.
1313
conda activate tensorflow-macos
1414
```
1515

16-
2. Install `bazel 6.5.0`.
16+
2. Install `bazel 7.4.1`.
1717

1818
```shell
19-
wget https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel-6.5.0-darwin-arm64 -O bazel
19+
wget https://github.com/bazelbuild/bazel/releases/download/7.4.1/bazel-7.4.1-darwin-arm64 -O bazel
2020
chmod +x bazel
2121
sudo mv bazel /usr/local/bin/
22-
bazel --version # Make sure the version is 6.5.0.
22+
bazel --version # Make sure the version is 7.4.1.
2323
```
2424

25-
3. Download and extract `tensorflow 2.19.0`.
25+
3. Download and extract `tensorflow 2.20.0`.
2626

2727
```shell
28-
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.19.0.zip
29-
unzip v2.19.0.zip
30-
cd tensorflow-2.19.0
28+
wget https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.20.0.zip
29+
unzip v2.20.0.zip
30+
cd tensorflow-2.20.0
3131
```
3232

3333
4. Set the environment variable `TF_PYTHON_VERSION`.
3434

3535
```shell
36-
export TF_PYTHON_VERSION=3.12 # Corresponding to the Python version above, please.
36+
export TF_PYTHON_VERSION=3.13 # Corresponding to the Python version above, please.
3737
```
3838

3939
5. Configure the build.
@@ -42,7 +42,7 @@ Please use `Xcode 15.3` and `Apple clang version 15.0.0 (clang-1500.3.9.4)` or l
4242
./configure # Please use all default options.
4343
```
4444

45-
6. Build `tensorflow` (which takes approximately `70` minutes on the author's M1 MacBook Pro `16`GB).
45+
6. Build `tensorflow` (which takes approximately `55` minutes on the author's M4 Mac mini `32`GB).
4646
4747
```shell
4848
bazel build //tensorflow/tools/pip_package:wheel
@@ -51,6 +51,7 @@ Please use `Xcode 15.3` and `Apple clang version 15.0.0 (clang-1500.3.9.4)` or l
5151
7. Install the `whl` file.
5252
5353
```shell
54+
mv ./bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl ./bazel-bin/tensorflow/tools/pip_package/wheel_house/tensorflow-2.20.0-cp313-cp313-macosx_12_0_arm64.whl # Corresponding to the tensorflow and Python version above, please.
5455
pip install ./bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl
5556
```
5657

0 commit comments

Comments
 (0)