Disable c10 dispatcher on mobile (#17078)
authorSebastian Messmer <messmer@fb.com>
Thu, 28 Feb 2019 01:54:50 +0000 (17:54 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 28 Feb 2019 01:57:50 +0000 (17:57 -0800)
commit7c5ffc41206baf391d76c7822aa5bd762db64f3a
tree8bd90fb7cc62e41724a40c982a46e7a8ebf0cd82
parent1154506533bfe9428600fd69fa2e71dd172b7fec
Disable c10 dispatcher on mobile (#17078)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17078

This prevents caffe2 operators from being expsoed to c10 on mobile,
which in turn causes the whole c10 dispatcher to be stripped away
and saves binary size.

We probably want to re-enable the c10 dispatcher for mobile,
but for now this is ok.

Reviewed By: ezyang

Differential Revision: D14077972

fbshipit-source-id: e4dd3e3b60cdfbde91fe0d24102c1d9708d3e5c4
c10/util/Metaprogramming.h
caffe2/core/c10_operator.h
caffe2/core/operator_c10wrapper.h