Skip to main content

TensorFlow: Advanced Topics

  • Chapter
  • First Online:

Abstract

The TensorFlow library has come a long way from its first appearance. Especially in the last year, many more features have become available that can make the life of researchers a lot easier. Things like eager execution and Keras allow scientists to test and experiment much faster and debug models in ways that were not possible before. It is essential for any researcher to know those methods and know when it makes sense to use them. In this chapter, we will look at few of them: eager execution, GPU acceleration, Keras, how to freeze parts of a network and train only specific parts (used very often, especially in transfer learning and image recognition), and finally how to save and restore models already trained. Those technical skills will be very useful, not only to study this book, but in real-life research projects.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://www.tensorflow.org/guide/eager (accessed 17th January, 2019)

  2. 2.

    You can find the notebook with the code in the book repository. To find it, go to the Apress book website and click on the Download Code button. The link points to the GitHub repository. The notebook is in the Chapter2 folder.

  3. 3.

    You can find this article at https://goo.gl/hXKNnf to learn how to do it.

  4. 4.

    The result was obtained when calling the function in a Google Colab notebook.

  5. 5.

    The code has been inspired by the Google code in the Google Colab documentation.

  6. 6.

    Check the official documentation for the example at https://keras.io/getting-started/faq/#how-can-i-freeze-keras-layers .

  7. 7.

    https://keras.io/callbacks/

  8. 8.

    The example was inspired by the official Keras documentation at https://www.tensorflow.org/tutorials/keras/save_and_restore_models .

  9. 9.

    Check the official documentation at https://goo.gl/SnKgyQ .

  10. 10.

    https://www.tensorflow.org/guide/datasets

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Umberto Michelucci

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Michelucci, U. (2019). TensorFlow: Advanced Topics. In: Advanced Applied Deep Learning . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4976-5_2

Download citation

Publish with us

Policies and ethics