Programming assignment Week 2 CNN course

H​ello,

I​’ve trying very hard to have my identity_block function working but I don’t manage. I get the error:

Cell #5. Can’t compile the student’s code. Error: ValueError(‘A merge layer should be called on a list of inputs.’)

W​hat can I do?

M​any thanks, Pilar Casado

Are you using the functional API syntax?
Each layer looks like a function call, not a list of layers (as it was in the sequential API).

1 Like

Dear mentor,

Yes, I’m using API. Would it be possible you look at my code?

Many thanks, Pilar

{… — reply edited — …}

{… — reply edited — …}

{… — reply edited — …}

Hey! I met the same error message and I used the Functional API syntax. When I ran the test cell in the JupyterNotebook, it said “All tests passed”, but I didn’t get any grade points from the Coursera server.

The grader probably gave an error message. Please post that error message.

It was exactly the same error message with casadop that

Cell #5. Can't compile the student's code. Error: ValueError('A merge layer should be called on a list of inputs.')

Be sure that you’ve completed all of the graded cells in the notebook before you submit it for grading.

1 Like