...

/

TF Model Conversion to TF Lite (Part 2)

TF Model Conversion to TF Lite (Part 2)

Learn to convert TF models obtained from concrete functions to the TF Lite format.

Eager and graph execution

In TF2, eager execution is the default mode instead of graph executionEager_and_Graph_Execution. However, we can use the tf.function to run our function code inside a graph. The tf.function converts regular code to callable TF graph functions to make a Python-independent dataflow graph tf.Graph from our regular code. These graph data structures contain tf.Operation and tf.Tensor objects. We can save and run tf.Graph data structures without the original Python code. This makes graphs machine-independent. TF uses graphs as a format for SavedModel.

What is a concrete function?

Functions in TF are ...