Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning Course DeepLearning.AI Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning - Week 3 Lab 1

Hi @cesarcx

You need to ensure that the model has been called with some input data before you try to access the model’s layers’ outputs.

You can insert a dummy call to the model right after you define and compile it:

model(tf.keras.Input((28, 28, 1)))

Hope this helps! Feel free to ask if you need further assistance.