19 #include "caffe2/core/logging.h"
20 #include "caffe2/core/registry.h"
21 #include "caffe2/proto/caffe2.pb.h"
26 std::function<void(NetDef*, const OperatorDef&)>;
73 static void Append(NetDef* net,
const OperatorDef& op);
78 static CaffeMap<std::string, ReferenceImplementation>&
getMap();
81 #define TC_REFERENCE_IMPLEMENTATION(name, func) \
82 static ::caffe2::ReferenceImplementationRegistry::Register \
83 CAFFE_ANONYMOUS_VARIABLE(tc_ref##name)(#name, func);
Definition: operator_meta.h:63
Definition: operator_meta.h:65
ReferenceImplementationRegistry()=delete
std::function< void(NetDef *, const OperatorDef &)> ReferenceImplementation
Definition: operator_meta.h:26
static NetDef ConvertNet(const NetDef &net)
Register(const std::string &name, ReferenceImplementation func)
Definition: operator_meta.h:67
static CaffeMap< std::string, ReferenceImplementation > & getMap()
static void Append(NetDef *net, const OperatorDef &op)