Implement fix recommended by @slayton58
Implement fix recommended by @slayton58

Summary: This addresses integer division errors.

Reviewed By: bwasti

Differential Revision: D4315555

fbshipit-source-id: 13ef9496409b3452bc5fb66ce787b11af1382132

pietern/caffe2,bwasti/caffe2,sf-wind/caffe2,sf-wind/caffe2,Yangqing/caffe2,pietern/caffe2,xzturn/caffe2,davinwang/caffe2,bwasti/caffe2,davinwang/caffe2,xzturn/caffe2,caffe2/caffe2,sf-wind/caffe2,sf-wind/caffe2,xzturn/caffe2,pietern/caffe2,pietern/caffe2,Yangqing/caffe2,Yangqing/caffe2,bwasti/caffe2,Yangqing/caffe2,bwasti/caffe2,davinwang/caffe2,Yangqing/caffe2,bwasti/caffe2,xzturn/caffe2,sf-wind/caffe2,pietern/caffe2,davinwang/caffe2,davinwang/caffe2,xzturn/caffe2