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
softsign_op.h
1
#ifndef CAFFE2_OPERATORS_SOFTSIGN_OP_H_
2
#define CAFFE2_OPERATORS_SOFTSIGN_OP_H_
3
4
#include <vector>
5
6
#include "caffe2/operators/elementwise_ops.h"
7
#include "caffe2/utils/math.h"
8
9
namespace
caffe2
{
10
11
template
<
class
Context>
12
struct
SoftsignFunctor
{
13
template
<
typename
T>
14
bool
operator()(
const
int
N,
const
T
* X,
T
* Y, Context* context)
const
;
15
};
16
17
template
<
class
Context>
18
struct
SoftsignGradientFunctor
{
19
template
<
typename
T>
20
bool
Forward(
21
const
std::vector<int>& X_dims,
22
const
std::vector<int>& dY_dims,
23
const
T
* X,
24
const
T
* dY,
25
T
* dX,
26
Context* context)
const
;
27
};
28
29
}
// namespace caffe2
30
31
#endif // CAFFE2_OPERATORS_SOFTSIGN_OP_H_
T
Definition:
dataloader.cpp:482
caffe2::SoftsignGradientFunctor
Definition:
softsign_op.h:18
caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition:
blob.h:13
caffe2::SoftsignFunctor
Definition:
softsign_op.h:12
Generated on Thu Mar 21 2019 13:06:19 for Caffe2 - C++ API by
1.8.11