Cryptic error message in C2W3 assignment grading - Transfer learning

During grading my assignment, I receive this error:

create_final_model
There was an error grading your submission. Details:
‘list’ object has no attribute ‘shape’

Unit tests properly ran, the results and intermediate results look great.
Checked but, not introduced lists instead of np arrays

please DM your create model codes via personal DM as a screenshot.

regards
DM

Hi @Peter_Szucs

Peter the probable reason for that grade error is because you are recalling the inputs for the code line

Create the complete model by using the Model class

with incorrect code, you need use the pre_trained_model(which you did correctly) but you are suppose to use only input not inputs when you recall that model class, it should inputs=pre_trained_model.input

regards
DP

2 Likes

@derekdai77 see the comment here, you have done same mistake as this learner, you suppose to only use input to the pre_trained.model but you have used inputs

1 Like

it works!
so thank you , DP.
it helps a lot!

it works!
so thank you , DP.

1 Like