Error on week 2 assigment 2

It looks like you have edited that “test” cell in a way that breaks it. There should be no reason to change that cell. Here’s what it looks like in my notebook:

from test_utils import summary, comparator

alpaca_summary = [['InputLayer', [(None, 160, 160, 3)], 0],
                    ['Sequential', (None, 160, 160, 3), 0],
                    ['TensorFlowOpLayer', [(None, 160, 160, 3)], 0],
                    ['TensorFlowOpLayer', [(None, 160, 160, 3)], 0],
                    ['Functional', (None, 5, 5, 1280), 2257984],
                    ['GlobalAveragePooling2D', (None, 1280), 0],
                    ['Dropout', (None, 1280), 0, 0.2],
                    ['Dense', (None, 1), 1281, 'linear']] #linear is the default activation

comparator(summary(model2), alpaca_summary)

for layer in summary(model2):

Notice that there is no reference to “model.predict” there. I think the best plan would be to follow the instructions on the FAQ Thread for getting a clean copy of the notebook and then very carefully “copy/paste” over just your completed code between the “START HERE” and “END HERE” comments.