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