How good is TensorFlow as a deep learning library and what other libraries should one look out for?
I just answered this question on Quora and thought I’d share this with you here since I am spedning gobs of time playing with a few of these frameworks — primarily Theano/Keras, TensorFlow and Lua (Torch and PyTorch)
Here is a [hopefully] more balanced view of the world of Deep Learning libraries as we [I] know it.
 LUA & HER CHILDREN:
Take a look at who’s supporting and building it.
- Easy to read and write
- Runs on GPU
- Enough pre-trained models to play with
- And you have PyTorch
- Not enough commercial backing though its building
- Not large enough community behind it for more commercially accepted models. This could change as Nvidia, Salesforce are super focused on their enterprise customers.
 PRINCESS THEANO and HER OFFSPRINGS
Probably one of the oldest deep learning framework — born and bred in academia and written in Python. Handles multi-dimensional arrays like Numpy etc. Believed to be best suited for academia and data explorations.
- Python, Numpy love is there
- Computation graph is ok fits stuff like RNN fairly well
- Decent high-level wrappers for Keras etc
- Still bulkier
- no multi-GPU support
- Trouble when working in cloud environments
As I mentioned, her offsprings are a lot more interesting. lets look at her children
P.S: Someone has done a neat job of comparing Theano vs others here at Github.
Keras is a decent deep learning library that can run on top of Theano and Tensorflow. It has a cool Python API developed in similar lines as Torch.
- Cool Python API developed inspired by Torch. It provides a high-level function , for instance you can programmatically build you own model here.
- Pretty flexible — works with Theano, TensorFlow, CNTK etc
- There is interest in the community for its further growth
- Pretty simple to create your own models.
import keras.layers as L import keras.models as M my_input = L.Input(shape=(100,)) intermediate = L.Dense(10, activation='relu')(my_input) my_output = L.Dense(1, activation='softmax')(intermediate) model = M.Model(input=my_input, output=my_output)
- Reported performance issues behind TensorFlow
- Needs to do more work in gain love from the commercial community. There’s a lot of passion in developers and research.
- Distributed learning could be better integrated.
*I’d suggest you look up Lasagne and Blocks yourself. There’s also Kur, which is built on top of Keras.
 TensorFlow — The Rising Prince of the Valley
Created by Google and goes deeper than just Deep Learning, it’s actually supports tools for reinforcement learning which is nice. Still developing and unsure what sort of commercial application of TensorFlow will come, for now its application in Google’s own cloud would be great for its cloud customers, especially with custom-made TPU.
- Python, Numpy support
- Good computational graph absraction like his step-mom Theano.
- Fast compile times than Theano
- Tensorboard is nice, I really love it’s functionality!
- Extremely popular within the development community as of 2017
- Still slower than other frameworks
- Still not Torch like
- Not enough pre-trained models for practical use (we have all run MNIST, Iris sets by now)
- No commercial backing (besides the fact that the world knows Google backs it)
- Drops in/out of Python to load each batch set, so performance wise still some work needs to be done.
- Still very keen to see its commercial application in enterprise — if there will ever be any, for instance dynamic typing when running large development projects.
Caffe: It’s well known and widely-used that ported Matlab’s kit of Fast Convolutional Net to C and C++. Although not — AFAIK, intended for text, audio, time series data.
- Good feed forward nets and image processing
- Train models , no need to write code
- Good to have Python interface
- Not so great for Recurrent Networks
- Can it handle big networks? (ImageNet, GoogLeNet etc)
- Commercial and enterprise love lacking
- Is it still alive?
Caffe2 — however has some form of backing from Facebook, maybe because its creator went working for them.
- It’s scalable
- BSD license, that helps.
- Will it come to the enterprises?
- How long will it live?
WATCH LIST FOR ME
 Microsoft’s CNTK — There’s more work happening here than you can imagine.
 MXNET — (adopted by Amazon AWS and Apple too is secretly building stuff into its APU chip with it after buying Carlos’ startup called Turi)
These are still early days but it is quite important for developers, enterprises and commercial parties to choose wisely their both development as well as production workloads and adopt models that work best for them.
Time, after all will be the most important resource we will have to manage as the Deep Learning ecosystem will explode with libraries, toolkits and HW/SW implementations.
Good luck and keep learning #DailyLearningMode
As for a quick view of Framework’s comparison (Note: This is from 2016)
and as for Design Choices (also from the same deck — which you can find here)
Originally published at www.quora.com.