TypeError: super(type, obj): obj must be an instance or subtype of type
程序员文章站
2024-01-05 16:22:34
...
TypeError: super(type, obj): obj must be an instance or subtype of type
原因是定义的类名,与super地方不一致
class ME(nn.Module):
def __init__(self):
super(ME, self).__init__()