August 2019
Intermediate to advanced
202 pages
5h 9m
English
The second step of converting TF 1.x code into idiomatic TF 2.0 code is to upgrade the training pipelines. TF 1.x training pipelines involve multiple tf.Session.run() calls for the optimizer, losses, and predictions. Such training loops also involve boilerplate code that's written to log the training results to the console for easy supervision.
In TF 2.0, three types of training loops can be used. Each of these loops has different advantages and disadvantages and varies in difficulty, API level, and complexity. They are as follows:
Read now
Unlock full access