Caffe2 - C++ API
A deep learning, cross platform ML framework
expand_dims.cc
1 #include "caffe2/operators/experimental/c10/schemas/expand_dims.h"
2 #include <ATen/core/dispatch/OpSchemaRegistration.h>
3 #include "caffe2/core/operator_c10wrapper.h"
4 
7 using c10::ivalue::IntList;
8 
9 namespace caffe2 {
10 namespace ops {
11 // TODO Parse schema string instead of creating FunctionSchema manually
12 C10_DEFINE_OP_SCHEMA(
13  ExpandDims,
14  FunctionSchema(
15  "_c10_experimental::ExpandDims",
16  "",
17  (std::vector<c10::Argument>{c10::Argument("input"),
18  c10::Argument("output"),
19  c10::Argument("dims", ListType::ofInts())}),
20  (std::vector<c10::Argument>{})));
21 }
22 }
23 
24 namespace caffe2 {
25 
26 REGISTER_C10_OPERATOR_FOR_CAFFE2_DISPATCH_CPU(
27  ops::ExpandDims(),
28  C10ExpandDims_DontUseThisOpYet)
29 }
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