Functional API Question

I dont understand the error…
Can anyone check if anything is wrong with my code?
{mentor edit: code removed}


Please do not post your code on the forum. That’s not allowed by the Code of Conduct.

Just post your error messages. If a mentor needs to see your code, we’ll contact you with instructions.

Tip: Verify that you’re using the correct pool size and strides in every layer.

I corrected the pool size and strides but the error remains

Your implementation is incorrect. If I want to pass Y to ReLU or any other layer, using Functional API, the correct way is ReLU()(Y), not ReLU(Y).

Wrong syntax here: