Closed ryankzhu closed 1 year ago
This seems to be caused by the fact that Small_AutoEncoder
inherits from AutoEncoder
, and that super().__init__()
is called in its __init__
method. I can see two solutions:
*args
and *kwargs
to the __init__
method of the superclass__init__
method of nn.Module
.Perhaps the former approach is better. @SCMusson?
Passing *args
or **kwargs
to __init__
method would work but create the encoders and decoders twice. Using Multiple inheritance would do the same and avoid unnecessary work. super(AutoEncoder, self).__init__()
should work I believe. Alternatively super(type(self).__bases__[0], self).__init__()
.
I pushed cf15651 which uses the former.
Hi! I get error when I do:
It seems that the kwargs given to set_autoencoder is not passed to initialise the foldingnet decoder: