Hi,
The main difference with Torch7 and PyTorch is that the old one does not have autograd, so you have to write the backward pass for everything. This is not true in pytorch: when working with nn.Modules, you only need to implement the forward (called updateOutput in Torch7).