7namespace Experimental {
10template <EReduceOpMode Op>
19 else if (
nodeproto.op_type() ==
"ReduceSumSquare")
21 else if (
nodeproto.op_type() ==
"ReduceProd")
23 else if (
nodeproto.op_type() ==
"ReduceSum")
25 else if (
nodeproto.op_type() ==
"ReduceMax")
27 else if (
nodeproto.op_type() ==
"ReduceMin")
31 throw std::runtime_error(
"TMVA::SOFIE - Reduce op mode not supported.");
38 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Reduce op has input tensor" +
input_name +
39 " but its type is not yet registered");
46 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Reduce op has input tensor" +
axes_name +
47 " but its type is not yet registered");
51 std::unique_ptr<ROperator>
op;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
const_iterator end() const
std::unique_ptr< ROperator > ParseReduce(RModelParser_ONNX &parser, const onnx::NodeProto &nodeproto)
ParserFuncSignature ParseReduceMean
std::function< std::unique_ptr< ROperator >(RModelParser_ONNX &, const onnx::NodeProto &)> ParserFuncSignature
ParserFuncSignature ParseReduceProd
ParserFuncSignature ParseReduceMax
ParserFuncSignature ParseReduceSum
ParserFuncSignature ParseReduceSumSquare
ParserFuncSignature ParseReduceMin
create variable transformations