And I don’t know what the problem is because with this I get print(type(last_output)) : <class 'keras.src.backend.common.keras_tensor.KerasTensor'>
so last_output has the correct type.
I tried to send the assignment with this error because everything else works fine but it rejects me from that failure.
I don’t know if it’s a problem with T1 and T2 versions and the course is not updated or I forgot some parameter.
Avoid posting codes from grade cell codes and link to assignment notebook. it is against community guidelines. I only asked you what loss you are using, didn’t ask you for complete code.
@Deepti_Prasad: Specifying loss function as a string should be accepted by the unit test code (see line 337 of unittests.py)
Odds are good @cortiz is using an old version of the lab files if your suggested fix solves the issue. It’d be nice to confirm be asking the learner to refresh their workspace and try again.
The problem was that pre_trained_model.input had type List and should be tensors. I solved it by adding some validations and parsing in a variable called “inputs” before the assignment and it worked.