Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ParseNonZero.cxx
Go to the documentation of this file.
3#include "onnx_proto3.pb.h"
4
5namespace TMVA {
6namespace Experimental {
7namespace SOFIE {
8
9ParserFuncSignature ParseNonZero = [](RModelParser_ONNX &parser, const onnx::NodeProto &nodeproto) {
11
12 auto input_name = nodeproto.input(0);
15 } else {
16 throw std::runtime_error("TMVA::SOFIE ONNX Parser NonZero op has input tensor" + input_name +
17 " but its type is not yet registered");
18 }
19
20 std::string output_name = nodeproto.output(0);
21
22 std::unique_ptr<ROperator> op;
23 switch (input_type) {
26 break;
29 break;
32 break;
35 break;
38 break;
41 break;
42 default:
43 throw std::runtime_error("TMVA::SOFIE - Unsupported - Operator NonZero does not yet support input type " +
44 std::to_string(static_cast<int>(input_type)));
45 }
46
47
48
51 }
52
53 return op;
54};
55
56} // namespace SOFIE
57} // namespace Experimental
58} // namespace TMVA
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void RegisterTensorType(const std::string &, ETensorType)
ETensorType GetTensorType(const std::string &name)
std::function< std::unique_ptr< ROperator >(RModelParser_ONNX &, const onnx::NodeProto &)> ParserFuncSignature
ParserFuncSignature ParseNonZero
create variable transformations