Carnets icon indicating copy to clipboard operation
Carnets copied to clipboard

Add tensorflow

Open Bidanets opened this issue 5 years ago • 13 comments

Please, add tensorflow.

Bidanets avatar Jun 30 '19 11:06 Bidanets

Noted, and added to the list of features: https://github.com/holzschu/Carnets/projects/1 It seems to require keras, which is already on the list; and it seems to require its own compiler, which could make cross-compiling a bit difficult. But it's now on the list.

holzschu avatar Jun 30 '19 12:06 holzschu

On the contrary, keras package requires tensorflow background. (tensorflow or theano background) -> keras So, tensorflow is independent of keras.

Bidanets avatar Jun 30 '19 13:06 Bidanets

Thanks for the clarification. I made a note of that. It is still difficult to cross-compile, and even more so with custom compilers, so it’s not going to be instantaneous.

holzschu avatar Jun 30 '19 14:06 holzschu

In this article https://preslav.me/2018/08/12/data-science-on-your-ipad/ about Pythonista 3 there are words: "Pythonista comes pre-packed with a ton of libraries we love and use every day: NumPy, Matplotlib, Requests, BeatufulSoup, etc. Yet, lacks some of our favourites, due to Apple’s restrictions: Pandas, SciPy, Scikit-Learn, and unfortunately, TensorFlow."

Bidanets avatar Jun 30 '19 14:06 Bidanets

Really need tensorflow too, keep working on it please!

Rui-K avatar Oct 10 '19 03:10 Rui-K

Recently, Apple has released Mac-optimized TensorFlow. It uses ML Compute framework as a backend of TensorFlow and the framework also supports iOS 14+. I think this variant of TensorFlow is more suitable for Carnets than the normal one.

kkebo avatar Dec 28 '20 03:12 kkebo

@holzschu Are there any news regarding this feature? Maybe as @kkk669 stated it will be easier with the MacOS tensorflow port?

I think having tensorflow/keras for iOS would make the iPad much more "pro".

CaptainDario avatar Mar 16 '21 10:03 CaptainDario

The current TestFlight version has CoreMLTools, which is not tensorflow, but a step in the right direction. I'm working on the rest.

holzschu avatar Mar 16 '21 10:03 holzschu

Thanks for the clarification. I made a note of that. It is still difficult to cross-compile, and even more so with custom compilers, so it’s not going to be instantaneous.

I’d also love to see TF.

I recommend using the Apple-compiled tensorflow-macos and tensorflow-metal packages, which should run quite fast on the latest iPad Pro’s with M1 and M2 chips. These can be downloaded directly from PyPi.

Rats—based on this comment, this approach won’t work:

Dynamic libraries contain specific code to prevent use on a different platform (you can't use Arm64 OSX libraries on Arm64 iOS phones). https://github.com/holzschu/Carnets/issues/245#issuecomment-1083314362

I’d also like to see PyTorch with MPS support. An example build formula for macOS is at MacPorts.

essandess avatar Jan 23 '23 03:01 essandess

Another vote for TensorFlow

Marcelo-GG avatar Jun 29 '23 09:06 Marcelo-GG

still no tensorflow :/. +1 anyway :)

Air-Craft avatar Nov 06 '23 11:11 Air-Craft

+1

Knight7561 avatar May 24 '24 18:05 Knight7561