Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcrelu_op.h
Go to the documentation of this file.
1 
16 #pragma once
17 
18 #include <string>
19 #include <vector>
20 
21 #include "tc/c2/tc_op.h"
22 #include "tc/library/fcrelu.h"
23 
24 namespace caffe2 {
25 
26 template <typename T, class Context, class Engine = caffe2::DefaultEngine>
27 class TcFCReluOp : public TcOp<T, Context, Engine> {
28  public:
29  static constexpr auto description = tc::TC_FCRELU;
30 
31  TcFCReluOp(const caffe2::OperatorDef& operator_def, caffe2::Workspace* ws)
32  : TcOp<T, Context, Engine>(operator_def, ws) {
33  this->tc_ = tc::TC_FCRELU;
34  this->tcName_ = tc::TC_FCRELU_NAME;
35  }
36 
37  ~TcFCReluOp() override {}
38 
39  protected:
40  void setupNaiveMappingOptions() override {
42  }
43 };
44 } // namespace caffe2
tc::MappingOptions mappingOptions_
Definition: tc_op.h:133
static constexpr auto description
Definition: fcrelu_op.h:29
Definition: tc_op.h:36
std::string tc_
Definition: tc_op.h:128
std::string tcName_
Definition: tc_op.h:130
static MappingOptions makeMlpMappingOptions()
TcFCReluOp(const caffe2::OperatorDef &operator_def, caffe2::Workspace *ws)
Definition: fcrelu_op.h:31
void setupNaiveMappingOptions() override
Definition: fcrelu_op.h:40
~TcFCReluOp() override
Definition: fcrelu_op.h:37
Definition: fcrelu_op.h:27