I’m getting the following error:
AttributeError: cannot assign module before Module.__init__() call.
I’m trying to create an instance of my class :
class ResNetGenerator(nn.Module):
    def __init__(self, input_nc=3, output_nc=3, n_residual_blocks=9, use_dropout=False):
        # super(ResNetGenerator, self).__init__()
        super().__init__()

I’m calling super().__init__() but in vain.
What I am doing wrong here?