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
--- /dev/null
+#include <ATen/Config.h>
+
+#if AT_MKLDNN_ENABLED()
+
+// needs to be included only once in library.
+#include <ideep_pin_singletons.hpp>
+
+#endif // AT_MKLDNN_ENALBED()
#include <caffe2/core/event_cpu.h>
#include <caffe2/core/operator.h>
#include <caffe2/proto/caffe2_pb.h>
-#include <ideep_pin_singletons.hpp>
+#include <ideep/tensor.hpp>
#include "ideep_context.h"
namespace at {