r/tensorflow • • Apr 12 '18

Tensorflow's tutorial is sucks

Have played with TensorFlow for a while by reading and revising other's code. Now I want to read tensorflows tutorial carefully and learn tensorflow comprehensively. Then I find the official tensorflow's tutorial is really sucks. For one thing, there are to many see other pages, I have to click many links in order to get understand about a code in tutorial. For other thing, tensorflow's APIs are not unified. In https://www.tensorflow.org/get_started/eager, it tells me to load CSV file by tf.data.TextLineDataset, but in other page (https://www.tensorflow.org/api_docs/python/tf/TextLineReader), it tells me to load CSV file by tf.TextLineReader. Can they unify the tutorial?

29 Upvotes

13 comments sorted by

View all comments

1

u/nitred Apr 12 '18

I think I'll defend Tensorflow here. I started using TensorFlow again recently after 6 months. Most of my old code is unusable because the API has completely changed since then, which is obviously frustrating. But after re-writing my code with the latest API, my code is much more readable and better structured.

There seems to have been one release every 1.5 months and each of these releases are non-trivial and they definitely have breaking changes or backwards incompatible changes to some parts of their code base. What is really under appreciated in the developer community is how long it actually takes to write good documentation for a piece of code. For me personally, writing "production ready" documentation for a function/class can take upto three hours making sure I cover all the caveats and writing documentation for a feature is at least a day long task. Therefore with their speed of development, I can see how it's so hard to document their work well. On top of that tutorials usually cover larger portions of the code base which is even more prone to having outdated content. Their priority will always be fix bugs > develop feature > write documentation > write tutorial > fix tutorial. Usually in such circumstances you'll have bloggers put up excellent tutorials where ever Tensorflow's tutorials are lacking. But I've seen that even their tutorials are outdated within a couple of months.

However there's some light at the end of the tunnel. After using it for the last week, I got the sense that the API is reaching a mature and finished stage and we may actually see more up to date tutorials and more in-depth tutorials soon (that's my optimistic opinion). The only reason one would use Tensorflow directly instead of Keras / TF-Estimator is because one would like to have more low level features. But anything that is low level is always going to be a murky mess. So I would recommend taking your time to learn TF slowly and with patience. Also consider contributing the tutorials and the documentation yourself :)

1

u/L_E_I Apr 13 '18

Yeah, I agree. I could understand that their team don't have enough time to perfect the tutorial currently. But still feel frustrating when reading it