How the following two classes interacts?
I was following the example of SNLI classifier from pytorch official examples and found the following two classes. <SCODE>class Bottle(nn.Module):

    def forward(self, input):
        if len(input.size()) <= 2:
            return super(Bottle, self).forward(input)
        size = input.size()[:2]
        out = super(Bottle, self).forward(input.view(size[0]*size[1], -1))
        return out.view(*size, -1)


class Linear(Bottle, nn.Linear):
    pass
<ECODE> Can anyone share your insight?
wasiahmad
pranav
DiffEverything
pranav
jekbradbury
I believe its best if we do not have such concepts at all - just simple Python and letting PyTorch/Model take the center stage
pranav