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")
23 else if (
nodeproto.op_type() ==
"ReduceSum")
27 throw std::runtime_error(
"TMVA::SOFIE - Reduce op mode not supported.");
34 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Reduce op has input tensor" +
input_name +
35 " but its type is not yet registered");
42 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Reduce op has input tensor" +
axes_name +
43 " but its type is not yet registered");
47 std::unique_ptr<ROperator>
op;
65 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.
const_iterator end() const
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 ParseReduceSum
ParserFuncSignature ParseReduceSumSquare
create variable transformations