tensorflow / text

Making text a first-class citizen in TensorFlow.
https://www.tensorflow.org/beta/tutorials/tensorflow_text/intro
Apache License 2.0
1.22k stars 338 forks source link

Make tensorflow-macos version match to build wheel successfully on Apple Silicon. #1234

Open tuzhucheng opened 10 months ago

tuzhucheng commented 10 months ago

To make the wheel successfully build on Apple Silicon machines, we can do the following:

For the 2.15 release, the tensorflow-macos version should be 2.15.0: https://github.com/tensorflow/text/blob/2.15/oss_scripts/configure.sh.

For the 2.14 release, the tensorflow-macos version should be 2.14.0: https://github.com/tensorflow/text/blob/2.14/oss_scripts/configure.sh.

tuzhucheng commented 10 months ago

Or we can directly install tensorflow even for macOS since starting from 2.13 it appears the arm64 wheels are included with tensorflow on pypi: https://pypi.org/project/tensorflow/2.15.0/#files.

yarri-oss commented 10 months ago

Yes, and we'd like to first put better testing in place and then update the references in configure.sh to tensorflow because it's supports Aarch64 wheels with an udpated setup.py shim.

markblee commented 8 months ago

Hi, is there any update or ETA for this? Thanks.