Hacker News new | ask | show | jobs
by pmikesell 3245 days ago
Keras uses Theano or Tensorflow as a backend, and has the same restrictions. The graph must be defined, and then computed.
2 comments

The graph does need to be compiled, you're right. But you can still do everything interactively through the REPL. I don't see the difference in practice.

Also, is there any reason to think useful optimizations are being made during compilation in theano or tf that don't get made in torch because it is more strictly dynamic? Anecdotally, pytorch seems quite fast, but I'm wondering.

I believe Keras is being made into an open spec that PyTorch could be made to run with.