TypeError: super(type, obj): obj must be an instance or subtype of type

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__()

猜你喜欢

转载自blog.csdn.net/weixin_44790486/article/details/113174933