Course 4 : Week 2 Exercise 2 -Alpaca Model Error

Could someone please help me in resolving the below error .

**Test failed **
** Expected value **

** [‘Sequential’, (None, 160, 160, 3), 0] **

** does not match the input value: **

** [‘TensorFlowOpLayer’, [(None, 160, 160, 3)], 0]**

CODE : # apply data augmentation to the inputs
# mentor edit: code removed - not allowed by the Honor Code

A couple of corrections:

The argument for data_augmentation(…) is ‘inputs’. This gives you ‘x’.

The argument for preprocess_input(…) should be ‘x’, not ‘inputs’.

3 Likes