Did you make sure to set your model to evaluation with model.eval() before comparing its output to the torch7 model?
I think in torch7 you can just print the output of each layer.
Could you try to call this, if you used a Sequential model:
net.modules[n].output