-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathROperator.hxx
45 lines (25 loc) · 821 Bytes
/
ROperator.hxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef TMVA_SOFIE_ROPERATOR
#define TMVA_SOFIE_ROPERATOR
#include <vector>
#include <memory>
#include "SOFIE_common.hxx"
//#include "RModel.hxx"
namespace TMVA{
namespace Experimental{
namespace SOFIE{
class RModel;
class ROperator{
public:
virtual std::vector<std::vector<size_t>> ShapeInference(std::vector<std::vector<size_t>>) = 0;
virtual std::vector<ETensorType> TypeInference(std::vector<ETensorType>) = 0;
virtual void Initialize(RModel&) = 0;
virtual std::string Generate(std::string OpName) = 0; //expect unique opname for each operator within the same RModel
virtual std::string Header() { return "";}
//virtual void Forward_reference() = 0;
//irtual void Forward_blas() = 0;
virtual ~ROperator(){}
};
}//SOFIE
}//Experimental
}//TMVA
#endif //TMVA_SOFIE_OPERATOR