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
softplus_op.h
1
#ifndef CAFFE2_OPERATORS_SOFTPLUS_OP_H_
2
#define CAFFE2_OPERATORS_SOFTPLUS_OP_H_
3
4
#include "caffe2/core/common_omp.h"
5
#include "caffe2/core/context.h"
6
#include "caffe2/core/logging.h"
7
#include "caffe2/core/operator.h"
8
9
namespace
caffe2
{
10
11
template
<
typename
T,
class
Context>
12
class
SoftplusOp
final :
public
Operator
<Context> {
13
public
:
14
USE_SIMPLE_CTOR_DTOR(
SoftplusOp
)
15
USE_OPERATOR_CONTEXT_FUNCTIONS;
16
17
bool
RunOnDevice()
override
;
18
19
protected
:
20
};
21
22
template
<
typename
T,
class
Context>
23
class
SoftplusGradientOp
final :
public
Operator
<Context> {
24
public
:
25
USE_SIMPLE_CTOR_DTOR(
SoftplusGradientOp
)
26
USE_OPERATOR_CONTEXT_FUNCTIONS;
27
28
bool
RunOnDevice()
override
;
29
30
protected
:
31
// Input: Y, dY; Output: dX
32
};
33
34
}
// namespace caffe2
35
36
#endif // CAFFE2_OPERATORS_SOFTPLUS_OP_H_
caffe2::SoftplusGradientOp
Definition:
softplus_op.h:23
caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition:
blob.h:13
caffe2::Operator
Definition:
operator.h:677
caffe2::SoftplusOp
Definition:
softplus_op.h:12
Generated on Thu Mar 21 2019 13:06:19 for Caffe2 - C++ API by
1.8.11