News for hackers. Stuff that matters.
Re:Ask HN: Keras on PyPy? by garybake on Friday January 03, 2020 @04:38AM (#21944537)
I got stuck on this problem a while ago. I was doing reinforcement learning and the environment needed to run in pypy to make it fast enough. I ended up using Pyro4 to bridge pypy (environment) and CPython (keras).
Re:Ask HN: Keras on PyPy? by pmiller2 on Thursday January 02, 2020 @04:39PM (#21940158)
It seems like there's some progress, including a merged PR to tensorflow that should end up making this work, but I'm confused as to the exact status:https://github.com/tensorflow/tensorflow/issues/252
Re:Ask HN: Keras on PyPy? by ghostbust555 on Thursday January 02, 2020 @04:40PM (#21940171)
Asked about this before. I was told no one cared since the real work is done in C and would not benefit from pypy. So the python level optimizations would not affect much.
Re:Ask HN: Keras on PyPy? by entilzha on Friday January 03, 2020 @02:31AM (#21943999)
Not entirely true. For good utilization you need both GPU/TPU ops to be fast (written in C), but that won’t get you far if your input pipeline (possibly written in python) is slow. I could imagine if all the TF calls work in PyPy, that it would help with throughout by speeding up the input pipeline and keeping the GPU/TPU saturated more effectively. One solution is to write everything to TFRecords, but for experimentation that’s kinda annoying.
Re:Ask HN: Keras on PyPy? by RocketSyntax on Friday January 03, 2020 @10:41AM (#21946789)
Ah, I figured it was all Python. Now it makes sense why tensor objects are such a pain to work with.

C++ 60.6% Python 30.6%

Re:Ask HN: Keras on PyPy? by psv1 on Friday January 03, 2020 @06:55AM (#21945152)
> non-standard interpreters like pypy and cpython

Isn't CPython the default and most standard interpreter?