NameError: name 'Conv2d' is not defined site:stackoverflow.com code example
Example: NameError: name 'array' is not defined
Do yo have a file called numpy.py in your working directory?
If yes, rename it.
For your task in https://python-forum.io/Thread-Question-1-Count-symbols
you do not need numpy.