TensorFlow源码编译(MacOS)

时间:2023-01-14 09:55:14


  1. 编译前先安装依赖:

xcode 9.2或者更高

使用 brew包管理工具安装python

brew install python



TensorFlow源码编译(MacOS)



TensorFlow源码编译(MacOS)


安装依赖:

pip install -U --user pip numpy wheel packaging requests opt_einsum



TensorFlow源码编译(MacOS)


pip install -U --user keras_preprocessing --no-deps



TensorFlow源码编译(MacOS)


brew install bazelisk 配置时会自动安装bazel5.3.0版本



TensorFlow源码编译(MacOS)


克隆TensorFlow源码:

git clone https://github.com/tensorflow/tensorflow.git



TensorFlow源码编译(MacOS)


配置:



TensorFlow源码编译(MacOS)


编译源码:



TensorFlow源码编译(MacOS)



TensorFlow源码编译(MacOS)


Bug解决中...