Files
pytorch/caffe2/mkl/mkl_operator.cc
Edward Yang 91797c0672 Replace direct include of caffe2.pb.h with an intermediary header caffe2_pb.h (#10946)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/10946

```
codemod -d . --extensions cc,cpp,cu,cuh,h caffe2/proto/caffe2.pb.h caffe2/proto/caffe2_pb.h
```

Reviewed By: houseroad

Differential Revision: D9539945

fbshipit-source-id: 497d04720e8e7e61c05ffe1b23733d0cb774de7e
2018-08-28 11:57:08 -07:00

20 lines
464 B
C++

#include "caffe2/core/operator.h"
#include "caffe2/proto/caffe2_pb.h"
CAFFE2_DEFINE_bool(
caffe2_mkl_memonger_in_use,
false,
"Turn on if memonger is used to force reallocate intermediate "
"and output buffers within each op");
namespace caffe2 {
CAFFE_DEFINE_REGISTRY(
MKLOperatorRegistry,
OperatorBase,
const OperatorDef&,
Workspace*);
CAFFE_REGISTER_DEVICE_TYPE(DeviceType::MKLDNN, MKLOperatorRegistry);
} // namespace caffe2