Caffe2 - C++ API
A deep learning, cross platform ML framework
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_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13