Caffe2 - C++ API
A deep learning, cross platform ML framework
perplexity_op.h
1 
17 #ifndef CAFFE2_OPERATORS_PERPLEXITY_OP_H_
18 #define CAFFE2_OPERATORS_PERPLEXITY_OP_H_
19 
20 #include "caffe2/core/context.h"
21 #include "caffe2/core/operator.h"
22 
23 namespace caffe2 {
24 
25 template <typename T, class Context>
26 class PerplexityOp final : public Operator<Context> {
27  public:
28  USE_SIMPLE_CTOR_DTOR(PerplexityOp);
29  USE_OPERATOR_CONTEXT_FUNCTIONS;
30  bool RunOnDevice() override;
31 };
32 
33 } // namespace caffe2
34 
35 #endif // CAFFE2_OPERATORS_PERPLEXITY_OP_H_
Copyright (c) 2016-present, Facebook, Inc.