Different results when using caffe and pytorch

I ended up with this implementation of Caffe SGD. Appreciate if you can take a look.