Did you just copy-paste my code snippet and did receive this error or did you modify something?



 Tehreem:

Please also suggest any tutorial which will helps in calculating the parameters of each layer in CNN.


I would recommend to have a look at CS231n, which explains CNNs quite well.