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
Are you sure that you used the parameter that specifies the data augmentation function rather than directly referencing the global definition of the function that happens to get passed in to alpaca_model?
Hmmm, that looks pretty similar to mine. The only differences are that you used GlobalMax pooling where they told you to use Global Average pooling. The only other difference is that I did not specify an activation on the Dense layer.
And what is the actual error output you are getting?
It never hurts to actually read the comments and I’ll bet the error message was also pretty explicit in this case.
Glad to hear that you got it all to work!
Also thanks a lot for editing your posts to remove the source code! Now that you’ve got the solution, it’s better not to leave that lying around on the forums. Thanks!