diff --git a/tmva/sofie/inc/TMVA/ROperator.hxx b/tmva/sofie/inc/TMVA/ROperator.hxx index cde07a347a16a..341ce48fd7073 100644 --- a/tmva/sofie/inc/TMVA/ROperator.hxx +++ b/tmva/sofie/inc/TMVA/ROperator.hxx @@ -21,8 +21,8 @@ class ROperator{ public: virtual std::vector GetBlasRoutines() { return {}; } virtual std::vector GetStdLibs() { return {}; } - virtual std::vector> ShapeInference(std::vector>) = 0; - virtual std::vector TypeInference(std::vector) = 0; + virtual std::vector> ShapeInference(std::vector>) { return {}; }; + virtual std::vector TypeInference(std::vector) { return {}; }; virtual void Initialize(RModel&) = 0; virtual std::string Generate(std::string OpName) = 0; //expect unique opName for each operator within the same RModel // generate initialization code for session constructor diff --git a/tmva/sofie/inc/TMVA/ROperator_Shape.hxx b/tmva/sofie/inc/TMVA/ROperator_Shape.hxx index 4a5380ccfc9bc..983f10cb6a271 100644 --- a/tmva/sofie/inc/TMVA/ROperator_Shape.hxx +++ b/tmva/sofie/inc/TMVA/ROperator_Shape.hxx @@ -35,16 +35,6 @@ public: fOutputTensorNames = { fNY }; } - std::vector TypeInference(std::vector input) override { - return input; - } - - std::vector> ShapeInference(std::vector> input) override { - std::vector> ret; - ret[0].push_back(input[0].size()); - return ret; - } - void Initialize(RModel& model) override { if (model.CheckIfTensorAlreadyExist(fNX) == false){ //input must be a graph input, or already initialized intermediate tensor throw std::runtime_error("TMVA SOFIE Shape Op Input Tensor " + fNX + " is not found in model");