10 auto input_name = nodeproto.input(0);
12 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Cast op has input tensor" + input_name +
13 " but its type is not yet registered");
18 for (
int_t i = 0; i < nodeproto.attribute_size(); i++) {
19 std::string attribute_name = nodeproto.attribute(i).name();
20 if (attribute_name ==
"to") {
21 output_type =
static_cast<ETensorType>(nodeproto.attribute(i).i());
25 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Cast op has invalid output type");
27 std::string output_name = nodeproto.output(0);
28 auto op = std::make_unique<ROperator_Cast>(output_type, nodeproto.input(0), output_name);