Test failed Expected value [‘Functional’, (None, 5, 5, 1280), 2257984] does not match the input value: [‘BatchNormalization’, (None, 160, 160, 3), 12] --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) in 10 [‘Dense’, (None, 1), 1281, ‘linear’]] #linear is the default activation 11 —> 12 comparator(summary(model2), alpaca_summary) 13 14 for layer in summary(model2): ~/work/W2A2/test_utils.py in comparator(learner, instructor) 19 “\n\n does not match the input value: \n\n”, 20 colored(f"{a}", “red”)) —> 21 raise AssertionError(“Error in test”) 22 print(colored(“All tests passed!”, “green”)) 23 AssertionError: Error in test
A screen capture image would be more helpful, because it preserves the line breaks, and also please show the entire output cell contents.
The above has debug shapes at each step
I will take them out to get more on the screen
Test failed
Expected value
[‘Functional’, (None, 5, 5, 1280), 2257984]
does not match the input value:
[‘BatchNormalization’, (None, 160, 160, 3), 12]
AssertionError Traceback (most recent call last)
in
10 [‘Dense’, (None, 1), 1281, ‘linear’]] #linear is the default activation
11
—> 12 comparator(summary(model2), alpaca_summary)
13
14 for layer in summary(model2):
~/work/W2A2/test_utils.py in comparator(learner, instructor)
19 “\n\n does not match the input value: \n\n”,
20 colored(f"{a}", “red”))
—> 21 raise AssertionError(“Error in test”)
22 print(colored(“All tests passed!”, “green”))
23
AssertionError: Error in test