File tree 2 files changed +2
-12
lines changed
2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ class ROperator{
21
21
public:
22
22
virtual std::vector<std::string> GetBlasRoutines () { return {}; }
23
23
virtual std::vector<std::string> GetStdLibs () { return {}; }
24
- virtual std::vector<std::vector<size_t >> ShapeInference (std::vector<std::vector<size_t >>) = 0 ;
25
- virtual std::vector<ETensorType> TypeInference (std::vector<ETensorType>) = 0 ;
24
+ virtual std::vector<std::vector<size_t >> ShapeInference (std::vector<std::vector<size_t >>) { return {}; } ;
25
+ virtual std::vector<ETensorType> TypeInference (std::vector<ETensorType>) { return {}; } ;
26
26
virtual void Initialize (RModel&) = 0;
27
27
virtual std::string Generate (std::string OpName) = 0; // expect unique opName for each operator within the same RModel
28
28
// generate initialization code for session constructor
Original file line number Diff line number Diff line change @@ -35,16 +35,6 @@ public:
35
35
fOutputTensorNames = { fNY };
36
36
}
37
37
38
- std::vector<ETensorType> TypeInference (std::vector<ETensorType> input) override {
39
- return input;
40
- }
41
-
42
- std::vector<std::vector<size_t >> ShapeInference (std::vector<std::vector<size_t >> input) override {
43
- std::vector<std::vector<size_t >> ret;
44
- ret[0 ].push_back (input[0 ].size ());
45
- return ret;
46
- }
47
-
48
38
void Initialize (RModel& model) override {
49
39
if (model.CheckIfTensorAlreadyExist (fNX ) == false ){ // input must be a graph input, or already initialized intermediate tensor
50
40
throw std::runtime_error (" TMVA SOFIE Shape Op Input Tensor " + fNX + " is not found in model" );
You can’t perform that action at this time.
0 commit comments