At the moment Tensorflow Java do not publish the M1 compatible binary (see this) cause GitHub Actions still has no such build workers. For now, we have to build it locally from source:
- Checkout Tensorflow Java
- Install env for Tensorflow, see Build from source.
IMPORTANTt As of
01-01-2023
, TensorFlow fails to build on XCode command line tools version14+
. If you have such version installed, it might be necessary to downgrade it to a previous version, like13.4.1
. - Run
mvn install
(requires JDK 11)
We will be tracking Strategies for getting Tensorflow-Java on Apple Silicon? #394 to remove that chore.