12 auto input_name = nodeproto.input(0);
16 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser Swish op has input tensor" + input_name +
17 " but its type is not yet registered");
20 std::unique_ptr<ROperator> op;
25 for (
int_t i = 0; i < nodeproto.attribute_size(); i++) {
26 std::string attribute_name = nodeproto.attribute(i).name();
27 if (attribute_name ==
"alpha")
28 attr_alpha = nodeproto.attribute(i).f();
31 if (attr_alpha != 1.0) {
32 throw std::runtime_error(
"TMVA::SOFIE - Unsupported - Operator Swish does not yet support alpha != 1");
35 std::string output_name = nodeproto.output(0);