12 auto input_name = nodeproto.input(0);
16 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser selu op has input tensor" + input_name +
17 " but its type is not yet registered");
20 std::unique_ptr<ROperator> op;
23 float attr_alpha = 1.67326319217681884765625;
24 float attr_gamma = 1.05070102214813232421875;
26 for (
int_t i = 0; i < nodeproto.attribute_size(); i++) {
27 std::string attribute_name = nodeproto.attribute(i).name();
28 if (attribute_name ==
"alpha")
29 attr_alpha = nodeproto.attribute(i).f();
30 else if (attribute_name ==
"gamma")
31 attr_gamma = nodeproto.attribute(i).f();
34 std::string output_name = nodeproto.output(0);
38 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Operator Selu does not yet support input type " +
39 std::to_string(
static_cast<int>(input_type)));