3#include "onnx_proto3.pb.h"
7namespace Experimental {
10template <EReduceOpMode Op>
19 else if (
nodeproto.op_type() ==
"ReduceSumsquare")
21 else if (
nodeproto.op_type() ==
"ReduceProd")
25 throw std::runtime_error(
"TN+MVA::SOFIE - Reduce op mode not supported.");
32 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Reduce op has input tensor" +
input_name +
33 " but its type is not yet registered");
36 std::unique_ptr<ROperator>
op;
52 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Reduce Operator does not yet support input type " +
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
bool IsRegisteredTensorType(const std::string &)
void RegisterTensorType(const std::string &, ETensorType)
ETensorType GetTensorType(const std::string &name)
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 ParseReduceSumsquare
create variable transformations