fixed input and output schema for all functions
fixed input and output schema for all functions

Summary: Closes https://github.com/caffe2/caffe2/pull/814

Differential Revision: D5276763

Pulled By: akyrola

fbshipit-source-id: a1580d3deb2b72f52486aef379a6b8928a41301a

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