1.拼写错误
super.__init__()
Traceback (most recent call last):
File "D:\code\pythonProject2023\pytorch\CNN.py", line 47, in <module>
model = CNN_simple()
File "D:\code\pythonProject2023\pytorch\CNN.py", line 27, in __init__
super.__init__()
TypeError: descriptor '__init__' of 'super' object needs an argument
改为
super().__init__()
2.存在多个拼写问题,不详述