Complete the code to print the summary of a TensorFlow Keras model.
model = tf.keras.Sequential([tf.keras.layers.Dense(10, input_shape=(5,))]) model.[1]()
The summary() method prints the model architecture details.
Complete the code to visualize a TensorFlow Keras model architecture as a plot.
from tensorflow.keras.utils import plot_model plot_model(model, to_file='model.png', [1]=True)
The show_shapes=True argument adds the shape of each layer to the plot.
Fix the error in the code to correctly display the model summary.
model = tf.keras.Sequential() model.add(tf.keras.layers.Dense(5, input_shape=(3,))) model.[1]
The summary() method must be called with parentheses to execute.
Fill both blanks to create a plot of the model with shapes shown and saved to 'my_model.png'.
plot_model(model, to_file='my_model.png', [1]=[2])
Use show_shapes=True to display layer shapes in the saved plot.
Fill all three blanks to print the model summary and save a plot with shapes shown and layer names shown.
model.[1]() plot_model(model, to_file='model_plot.png', [2]=[3])
Call summary() to print details, and use show_shapes=True to show shapes in the plot.