pytorch/caffe2/opt/device.h
Orion Reblitz-Richardson d4832f1e7b More fixes for hidden visibility (#10624)
Summary:
Some more `ATEN_API` additions for hidden visibility.

Running CI tests to see what fails to link.

cc Yangqing mingzhe09088 ezyang
Pull Request resolved: https://github.com/pytorch/pytorch/pull/10624

Reviewed By: mingzhe09088

Differential Revision: D9392728

Pulled By: orionr

fbshipit-source-id: e0f0861496b12c9a4e40c10b6e0c9e0df18e8726
2018-08-20 10:11:59 -07:00

15 lines
443 B
C++

#include "caffe2/core/common.h"
#include "nomnigraph/Representations/NeuralNet.h"
namespace caffe2 {
namespace opt {
CAFFE2_API void insertCopies(
nom::repr::NNModule* nn,
std::function<bool(nom::repr::NNGraph::NodeRef)> supported,
std::function<nom::repr::NNGraph::NodeRef(nom::repr::NNGraph&)> copyToFn,
std::function<nom::repr::NNGraph::NodeRef(nom::repr::NNGraph&)> copyFromFn);
} // namespace opt
} // namespace caffe2