Comment Comment by apaszke But it is possible to write your model in purely functional style. Check out the PR to examples repo with functional ResNets https://github.com/pytorch/examples/pull/22. parent apaszke 9 years ago