3#include "onnx_proto3.pb.h"
6namespace Experimental {
9template <EComparisionOperator Op>
14 for (
int i = 0; i < 2; ++i) {
15 auto input_name = nodeproto.input(i);
23 std::runtime_error(
"TMVA::SOFIE ONNX parser Comparision op has input tensors of different types");
26 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Comparision op has input tensor " + input_name +
27 " but its type is not yet registered");
32 std::string output_name = nodeproto.output(0);
34 std::unique_ptr<ROperator> op;
46 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Comparision Operator does not yet support input type " +
60 return ParseComparision<EComparisionOperator::Eq>(parser, nodeproto);
65 return ParseComparision<EComparisionOperator::Less>(parser, nodeproto);
70 return ParseComparision<EComparisionOperator::LessEq>(parser, nodeproto);
75 return ParseComparision<EComparisionOperator::Greater>(parser, nodeproto);
80 return ParseComparision<EComparisionOperator::GreaterEq>(parser, nodeproto);
bool IsRegisteredTensorType(const std::string &)
void RegisterTensorType(const std::string &, ETensorType)
ETensorType GetTensorType(const std::string &name)
ParserFuncSignature ParseGreater
ParserFuncSignature ParseEq
ParserFuncSignature ParseLess
std::function< std::unique_ptr< ROperator >(RModelParser_ONNX &, const onnx::NodeProto &)> ParserFuncSignature
ParserFuncSignature ParseGreaterEq
std::string ConvertTypeToString(ETensorType type)
ParserFuncSignature ParseLessEq
std::unique_ptr< ROperator > ParseComparision(RModelParser_ONNX &parser, const onnx::NodeProto &nodeproto)
create variable transformations