You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
What is required to support ARM Macs? (Given we have the example libs for python) #26
We're working on simplifying the build process so we can pull in the TF binaries from the Python whls rather than building it from source. Once that's done it'll be easier for us to build the TF-Java binding for macOS ARM64 locally and upload it, then there will be support for that platform. At the moment we build TF-Java (both the TF native library and the TF JavaCPP binding) on Github Actions, there aren't any macOS ARM64 Github hosted runners and we have no build resources from Google (Google have been outsourcing builds for non-Linux platforms to other people anyway, Intel build Windows, AWS build Linux ARM64, Apple build macOS).
Once that's done we'll still need to figure out how to enable the pluggable device support as we looked at it last year and it was troublesome - tensorflow/java#410. Hopefully it'll be simpler with the new build but we don't know yet.
Thanks, that's really helpful. Is there someone's repo fork I can look at to see a prototype of pulling in the TF binaries from Python? I'm working out if there is a way I can contribute.
We're discussing how to implement it at the moment, so we don't have code yet. Spent last week checking out the whl folder layouts to make sure they all look roughly the same.
Activity
Craigacp commentedon Jun 4, 2023
We're working on simplifying the build process so we can pull in the TF binaries from the Python whls rather than building it from source. Once that's done it'll be easier for us to build the TF-Java binding for macOS ARM64 locally and upload it, then there will be support for that platform. At the moment we build TF-Java (both the TF native library and the TF JavaCPP binding) on Github Actions, there aren't any macOS ARM64 Github hosted runners and we have no build resources from Google (Google have been outsourcing builds for non-Linux platforms to other people anyway, Intel build Windows, AWS build Linux ARM64, Apple build macOS).
Once that's done we'll still need to figure out how to enable the pluggable device support as we looked at it last year and it was troublesome - tensorflow/java#410. Hopefully it'll be simpler with the new build but we don't know yet.
juliangamble commentedon Jun 5, 2023
Thanks, that's really helpful. Is there someone's repo fork I can look at to see a prototype of pulling in the TF binaries from Python? I'm working out if there is a way I can contribute.
Craigacp commentedon Jun 5, 2023
We're discussing how to implement it at the moment, so we don't have code yet. Spent last week checking out the whl folder layouts to make sure they all look roughly the same.
Craigacp commentedon Oct 11, 2024
Fixed in https://github.com/tensorflow/java/releases/tag/v1.0.0-rc.2