Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ParseTile.cxx
Go to the documentation of this file.
3#include "onnx_proto3.pb.h"
4
5namespace TMVA {
6namespace Experimental {
7namespace SOFIE {
8
9ParserFuncSignature ParseTile = [](RModelParser_ONNX &parser, const onnx::NodeProto &nodeproto) {
11
12 std::string input_name = nodeproto.input(0);
15 } else {
16 throw std::runtime_error("TMVA::SOFIE ONNX Parser Tile op has input tensor" + input_name +
17 " but its type is not yet registered");
18 }
19
20 std::string repeat_name = nodeproto.input(1);
22 // input_type = parser.GetTensorType(repeat_name);
23 } else {
24 throw std::runtime_error("TMVA::SOFIE ONNX Parser Tile op has input tensor" + input_name +
25 " but its type is not yet registered");
26 }
27
28 std::unique_ptr<ROperator> op;
29 std::string output_name = nodeproto.output(0);
30
31 switch (input_type) {
33 default:
34 throw std::runtime_error("TMVA::SOFIE - Unsupported - Operator Tile does not yet support input type " +
35 std::to_string(static_cast<int>(input_type)));
36 }
37
40 }
41
42 return op;
43};
44
45} // namespace SOFIE
46} // namespace Experimental
47} // 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 ParseTile
Definition ParseTile.cxx:9
create variable transformations