News for hackers. Stuff that matters.
Re:Introducing Keras 2 by jph00 on Tuesday March 14, 2017 @10:04PM (#13873214)
I'm intrigued!... The kernel calling overhead and lack of any GPU while/scan/map/etc for Pytorch seems like a limitation, but I guess on 2nd thoughts you can still do all the keras fit/predict stuff and auto-connecting up the layers.
Re:Introducing Keras 2 by apaszke on Wednesday March 15, 2017 @03:19AM (#13874380)
These ops are just not needed in PyTorch. while is just a Python while loop. Scan is a for loop, map is a list comprehension that applies modules. No need for anything fancy.
Re:Introducing Keras 2 by jph00 on Wednesday March 15, 2017 @11:44AM (#13876871)
Sure - but on pytorch they suffer the kernel launch overhead each time through the loop, whereas on tensorflow and theano they do not. Which really impacts the kinds of algorithms that work well on each platform. Does that seem like a reasonable assessment to you?
Re:Introducing Keras 2 by smhx on Wednesday March 15, 2017 @12:15PM (#13877146)
Currently not many frameworks have actual fusion of kernels (to avoid launching many GPU kernels). If you look underneath a theano.scan or TF.scan, GPU kernels are still being launched individually (but are likely stream-overlapped where appropriate).

With TF's XLA compiler, they are slowly getting towards kernel fusion, which will then reduce launch overheads.

We have similar things in the works for pytorch: to quickly JIT at runtime the dynamic graph that is getting executed. More news on this will come when time-appropriate.

Re:Introducing Keras 2 by whyrt12 on Wednesday March 15, 2017 @01:04PM (#13877684)
I WANT to use pytorch, but no bayesian learning or stochastic nodes like in edward. Any chance there are plans to for a compatibility layer with Edward or roll your own bayesian stuff?

Also, have you looked at Numba to do the jitting? Probably best not to have yet another separately maintained python JIT.

Re:Introducing Keras 2 by smhx on Wednesday March 15, 2017 @02:12PM (#13878382)
as core-devs, we dont plan to build-in something like Edward. However, folks in the community are brewing something:

https://discuss.pytorch.org/t/bayesian-computation-in-pytorc... https://discuss.pytorch.org/t/distribution-implementations/4...

Re:Introducing Keras 2 by apaszke on Wednesday March 15, 2017 @11:54AM (#13876971)
To not have the kernel launch overhead you'd need to stop launching GPU kernels but that's now how things work in any framework ;)