'Dense' object has no attribute 'op'

Just calling ReLU() like that returns you the ReLU function. So A1 will be a function, not a tensor. You need to pass an input tensor to the resulting ReLU() function. Tom’s point is that you have made the exact same mistake on every line that you showed: you create the functions, but you don’t actually invoke (call) them an input tensor.

Here’s an earlier thread that may shed some light.

2 Likes