Complete the code to load a saved TensorFlow model.
import tensorflow as tf model = tf.keras.models.[1]('my_model')
The function load_model loads a saved TensorFlow model from disk.
Complete the code to make predictions using the loaded model.
predictions = model.[1](input_data)The predict method is used to get the model's output for new input data.
Fix the error in the code to load a model from the file 'model.h5'.
model = tf.keras.models.load_model([1])The file path must be a string, so it needs quotes around it.
Fill both blanks to create a dictionary of predictions for each input sample.
results = {i: model.[1](sample) for i, sample in enumerate([2])}Use predict to get predictions for each sample in input_data.
Fill all three blanks to load a model, make predictions, and print the results.
model = tf.keras.models.[1]('saved_model') preds = model.[2](test_data) print([3])
Load the model with load_model, predict with predict, and print the predictions stored in preds.
