Good article explaining the internals of Pytorch
http://blog.ezyang.com/2019/05/pytorch-internals/
Another good one: http://blog.christianperone.com/2018/03/pytorch-internal-architecture-tour/