Github links to the newly introduced Eager modules in tensorflow: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/c/eager https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python/eager
What is TensorFlow Eager module for?
7.9k views Asked by myth510 At
4
There are 4 answers
0
On
According to these tweets:
- https://twitter.com/oshtim/status/879453382326353920
- https://twitter.com/breandan/status/879455797641719809
- https://twitter.com/mtesfald/status/879455326432632832
Eager is a new imperative mode in tensorflow (and not the same as the imperative module in contrib).
0
On
(Ready to run in 1.5rc0)
User Guide:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/g3doc/guide.md
Example Codes:
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/eager/python/examples
1
On
Eager execution is an imperative, define-by-run interface where operations are executed immediately as they are called from Python.
Visit https://research.googleblog.com/2017/10/eager-execution-imperative-define-by.html for more detail information.
According to an article written by a Google former intern explaining
tensorflow
eager mode
.Basically this is a mode in tensorflow that allows writing imperative coding style, like with
numpy
. So there should be no explicitgraph
,session
,session.run()
anymore. The graph is implicitly built when the code runs like inChainer
/PyTorch
.It is still under active development and the performance is still not as good as it could be. You can try it via the nightly build on
pip
while expecting some interesting new features likegraph function
, which allows calling a subgraph as a function. As the framework evolves, this should possibly be the default mode fortensorflow
.Update: Tensorflow team has officially talked about it.
Update: Eager mode is now official released in TF 1.7. There is a nice tutorial on their website. I guess everyone knows what it is by now, all major frameworks converge, dynamic neural networks.
Update: Eager mode will be the default mode in TF 2.0, the next major version planned for release later this year 2018.