pytorch/caffe2/opt/optimizer.h
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

18 lines
404 B
C++

#ifndef CAFFE2_OPT_OPTIMIZER_H
#define CAFFE2_OPT_OPTIMIZER_H
#include "caffe2/core/common.h"
#include "caffe2/proto/caffe2_pb.h"
#include "caffe2/core/workspace.h"
namespace caffe2 {
namespace opt {
CAFFE2_API NetDef optimize(NetDef net, Workspace* ws, int level = 1);
CAFFE2_API NetDef optimize(NetDef net, int level = 1);
} // namespace opt
} // namespace caffe2
#endif // CAFFE2_OPT_OPTIMIZER_H