No Attribute error for conv1

https://colab.research.google.com/drive/1ti7XCAn0QUcXVX096bm0dLjghXk8DI42?usp=sharing
There is an error in my code which I’m not able to understand

I have declared conv1 but it is showing an error that their is no attribute as ‘conv1’

Hi, please correct the function name, it should be __init__() mistakenly you’ve used only one underscore, it should’ve been two.

1 Like

Duplicate of: `ClassName` object has no attribute - Issue in recognizing the variable of the function