Hi,
I am creating a simple network:
class RandomNet(nn.Module):
    def __init__(self, vocab_size):
        super(RandomNet, self).__init__()
        self.vocab_size = vocab_size
        self.linear = nn.Linear(1, 2)

    def save_checkpoint(self, path):
        th.save(self.state_dict(), path)

    def load_checkpoint(self, path, cpu=False):
        if cpu:
            self.load_state_dict(th.load(path,
                map_location=lambda storage, loc: storage))
        else:
            self.load_state_dict(th.load(path))

    def forward(self, y):
        h = self.linear(y)
        return [h[0], h[1]]

When I wrapped this model inside a wrapper model, and just print the parameters:
self.net = RandomNet(src_vocab_size)
print(model.parameters())

AttributeError: 'RandomModel' object has no attribute 'parameters'

But I do have the linear parameter. How could I fix the error?
Am I making a mistake in using the linear layer?