AttributeError: cannot assign module before Module.__init__() call的一个可能原因

版权声明:转载注明出处 https://blog.csdn.net/york1996/article/details/83104293

错误翻译成中文是-------属性错误,模块不能在初始化之前赋值。错误原因有可能是:

在类的初始化里面没有加上父类的初始化,比如:

super(MLP, self).__init__()

猜你喜欢

转载自blog.csdn.net/york1996/article/details/83104293