Move ideep singleton registration to ATen from C2. (#18335)
authorGregory Chanan <gchanan@fb.com>
Mon, 1 Apr 2019 14:57:48 +0000 (07:57 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 1 Apr 2019 15:00:33 +0000 (08:00 -0700)
commit4c74cf74897d0fb05fe0060af6825eb779bd6f5c
tree45e3b4359c28da84ba9927ecb6b27b6119d8c2a6
parentddbfdc911d94760bb431fcdf2a0322432c1c8272
Move ideep singleton registration to ATen from C2. (#18335)

Summary:
Since we are going to add ideep to ATen, and ATen is always compiled, it makes sense to have the registration in ATen rather than C2.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18335

Reviewed By: bddppq

Differential Revision: D14578652

Pulled By: gchanan

fbshipit-source-id: 4d77fcfc21a362b21d5291a127498aa722548873
aten/src/ATen/native/mkldnn/IDeepRegistration.cpp [new file with mode: 0644]
caffe2/ideep/utils/ideep_register.cc