12 auto input_name = nodeproto.input(0);
14 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Shape op has input tensor" + input_name +
15 " but its type is not yet registered");
18 std::unique_ptr<ROperator> op;
19 std::string output_name = nodeproto.output(0);
21 int attr_end = INT_MAX;
23 for (
int_t i = 0; i < nodeproto.attribute_size(); i++) {
24 std::string attribute_name = nodeproto.attribute(i).name();
25 if (attribute_name ==
"start")
26 attr_start = nodeproto.attribute(i).i();
27 if (attribute_name ==
"end")
28 attr_end = nodeproto.attribute(i).i();
31 op.reset(
new ROperator_Shape(attr_start, attr_end, input_name, output_name));