Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ParseNot.cxx
Go to the documentation of this file.
3#include "onnx_proto3.pb.h"
4
5namespace TMVA {
6namespace Experimental {
7namespace SOFIE {
8
9ParserFuncSignature ParseNot = [](RModelParser_ONNX &parser, const onnx::NodeProto &nodeproto)
10{
12
13 if (nodeproto.input_size() != 1 || nodeproto.output_size() != 1)
14 std::runtime_error("TMVA::SOFIE ONNX Parser Not op has invalid input or output size ");
15
16 std::string input_name = nodeproto.input(0);
17
21 std::runtime_error("TMVA::SOFIE ONNX Parser Not op has invalid input type " + ConvertTypeToString(input_type));
22 } else {
23 throw
24 std::runtime_error("TMVA::SOFIE ONNX Parser Not op has input tensor " + input_name +
25 " but its type is not yet registered");
26 }
27
28 std::string output_name = nodeproto.output(0);
29 std::unique_ptr<ROperator> op(new ROperator_Not(input_name, output_name));
30
31 // Infer the output type
34 }
35
36 return op;
37};
38
39
40} // namespace SOFIE
41} // namespace Experimental
42} // 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 ParseNot
Definition ParseNot.cxx:9
std::string ConvertTypeToString(ETensorType type)
create variable transformations