Caffe2 - C++ API
A deep learning, cross platform ML framework
add.cc
1 #include "caffe2/operators/experimental/c10/schemas/add.h"
2 #include "caffe2/core/operator_c10wrapper.h"
3 
5 
6 namespace caffe2 {
7 namespace ops {
8 // TODO Parse schema string instead of creating FunctionSchema manually
9 C10_DEFINE_OP_SCHEMA(
10  Add,
11  FunctionSchema(
12  "_c10_experimental::Add",
13  "",
14  (std::vector<c10::Argument>{
15  c10::Argument("input1"),
16  c10::Argument("input2"),
17  c10::Argument("output"),
18  c10::Argument("legacy_broadcast", BoolType::get()),
19  c10::Argument("axis", IntType::get())}),
20  (std::vector<c10::Argument>{})));
21 }
22 }
23 
24 namespace caffe2 {
25 REGISTER_C10_OPERATOR_FOR_CAFFE2_DISPATCH_CPU(
26  ops::Add(),
27  C10Add_DontUseThisOpYet)
28 }
The CPU Context, representing the bare minimum of what a Context class in Caffe2 should implement...
Definition: context.h:40
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13
Definition: OpClasses.h:659