O'Reilly logo

TensorFlow Machine Learning Cookbook by Nick McClure

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Taking TensorFlow to Production

If we want to use our machine learning scripts in a production setting, there are some points to consider for best practices. Here, we will help to point out some best practices.

Getting ready

In this recipe, we want to summarize and condense various tips for bringing TensorFlow to production. We will cover how to best save and load vocabularies, graphs, variables, and model checkpoints. We will also talk about how to use TensorFlow's command-line argument parser and change the logging verbosity of TensorFlow.

How to do it…

  1. When running a TensorFlow program, we may want to be sure that no other graph session is already in memory, or that we clear the graph session every time while debugging a program. We can accomplish ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required