add option to do simple modulo
add option to do simple modulo

Summary: as desc.

Differential Revision: D6240061

fbshipit-source-id: 814a541a3e7f09ebbe2df63fd9202312e9f4c8d4

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