Caffe2 - C++ API
A deep learning, cross platform ML framework
jsd_op.h
1 #ifndef CAFFE2_OPERATORS_JSD_OP_H_
2 #define CAFFE2_OPERATORS_JSD_OP_H_
3 
4 #include "caffe2/core/context.h"
5 #include "caffe2/core/logging.h"
6 #include "caffe2/core/operator.h"
7 #include "caffe2/utils/math.h"
8 
9 namespace caffe2 {
10 
11 template <typename T, class Context>
12 class BernoulliJSDOp final : public Operator<Context> {
13  public:
14  USE_SIMPLE_CTOR_DTOR(BernoulliJSDOp);
15  USE_OPERATOR_CONTEXT_FUNCTIONS;
16  bool RunOnDevice() override;
17 };
18 
19 template <typename T, class Context>
20 class BernoulliJSDGradientOp final : public Operator<Context> {
21  public:
22  USE_SIMPLE_CTOR_DTOR(BernoulliJSDGradientOp);
23  USE_OPERATOR_CONTEXT_FUNCTIONS;
24  bool RunOnDevice() override;
25 };
26 
27 } // namespace caffe2
28 
29 #endif // CAFFE2_OPERATORS_JSD_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13