Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
2fcrelu_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/2fcrelu.h"
23 
24 namespace caffe2 {
25 
26 template <typename T, class Context, class Engine = caffe2::DefaultEngine>
27 class Tc2FCReluOp : public TcOp<T, Context, Engine> {
28  public:
29  static constexpr auto description = tc::TC_2FCRELU;
30 
31  Tc2FCReluOp(const caffe2::OperatorDef& operator_def, caffe2::Workspace* ws)
32  : TcOp<T, Context, Engine>(operator_def, ws) {
33  this->tc_ = tc::TC_2FCRELU;
34  this->tcName_ = tc::TC_2FCRELU_NAME;
35  }
36 
37  ~Tc2FCReluOp() override {}
38 
39  protected:
42  }
43 };
44 } // namespace caffe2
tc::MappingOptions mappingOptions_
Definition: tc_op.h:133
void setupNaiveMappingOptions()
Definition: 2fcrelu_op.h:40
Definition: tc_op.h:36
Definition: 2fcrelu_op.h:27
std::string tc_
Definition: tc_op.h:128
std::string tcName_
Definition: tc_op.h:130
static MappingOptions makeMlpMappingOptions()
~Tc2FCReluOp() override
Definition: 2fcrelu_op.h:37
static constexpr auto description
Definition: 2fcrelu_op.h:29
Tc2FCReluOp(const caffe2::OperatorDef &operator_def, caffe2::Workspace *ws)
Definition: 2fcrelu_op.h:31