r/tensorflow • • Dec 11 '20

AI Engineer asks what’s the difference between TensorFlow 1.0 and Tensorflow 2.0

https://recentlyheard.com/2020/12/10/ai-engineer-asks-whats-the-difference-between-tensorflow-1-0-and-tensorflow-2-0/
0 Upvotes

4 comments sorted by

5

u/VermillionBlu Dec 11 '20

One of the worst articles I read in a while. No benchmarks, no comparisons etc.

Writer doesn't seem to know what actually the difference is, and why is it a big deal.

Just for comparison, TF1 performs much better in terms of execution speed than TF2. This is a known issue across developers uaing TF2.

1

u/tfhwchoice Dec 13 '20

I have only used TF2 so i'm interested to know. To my understanding, the performance difference is a result of the default but optional eager execution model in TF2. Does TF1 perform better than TF2 even in graph mode?

1

u/grid_world Dec 11 '20

The biggest difference is that in TensorFlow 1.0 you first had to define the graph of operations on the tensor and then execute it. Whereas, in TensorFlow 2.0, it tries to be more Pythonic by letting you dynamically execute it.

1

u/RedSeal5 Dec 11 '20

easy.

1.0.

is this a trick question