Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
caffe2
operators
experimental
c10
schemas
cast.cc
1
#include "caffe2/operators/experimental/c10/schemas/cast.h"
2
#include <ATen/core/dispatch/OpSchemaRegistration.h>
3
#include "caffe2/core/operator_c10wrapper.h"
4
#include "caffe2/utils/cast.h"
5
6
using
caffe2::CPUContext
;
7
8
namespace
caffe2
{
9
namespace
ops {
10
// TODO Parse schema string instead of creating FunctionSchema manually
11
C10_DEFINE_OP_SCHEMA(
12
Cast,
13
FunctionSchema(
14
"_c10_experimental::Cast"
,
15
""
,
16
(std::vector<c10::Argument>{
17
c10::Argument
(
"input"
),
18
c10::Argument
(
"output"
),
19
c10::Argument
(
"to_dtype"
, IntType::get()),
20
}),
21
(std::vector<c10::Argument>{})));
22
}
23
}
24
25
namespace
caffe2
{
26
REGISTER_C10_OPERATOR_FOR_CAFFE2_DISPATCH_CPU(
27
ops::Cast(),
28
C10Cast_DontUseThisOpYet)
29
}
caffe2::CPUContext
The CPU Context, representing the bare minimum of what a Context class in Caffe2 should implement...
Definition:
context.h:40
caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition:
blob.h:13
c10::Argument
Definition:
function_schema.h:14
Generated on Thu Mar 21 2019 13:06:18 for Caffe2 - C++ API by
1.8.11