3#include "onnx_proto3.pb.h"
6namespace Experimental {
12 std::string input_name = nodeproto.input(0);
16 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Split op has input tensor" + input_name +
17 " but its type is not yet registered");
20 std::string split_name;
21 if (nodeproto.input_size() > 1) {
22 split_name = nodeproto.input(1);
24 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Split op has input tensor" + split_name +
25 " but its type is not yet registered");
30 if (nodeproto.attribute_size() > 0 )
31 std::cout <<
"WARNING: TMVA::SOFIE ONNX Parser Split operator: attributes are not yet supported- they are ignored" << std::endl;
34 size_t output_size = nodeproto.output_size();
35 std::vector<std::string> output_names(output_size);
36 for (
size_t i = 0; i < output_size; i++)
37 output_names[i] = nodeproto.output(i);
41 for (
size_t i = 0; i < output_size; i++) {
bool IsRegisteredTensorType(const std::string &)
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 ParseSplit
create variable transformations