12 auto input_name = nodeproto.input(0);
16 throw std::runtime_error(
"TMVA::SOFIE ONNX Parser gelu op has input tensor" + input_name +
17 " but its type is not yet registered");
21 std::string approximate =
"none";
22 for (
int i = 0; i < nodeproto.attribute_size(); i++) {
23 const auto &attr = nodeproto.attribute(i);
24 if (attr.name() ==
"approximate") {
25 approximate = attr.s();
29 std::string output_name = nodeproto.output(0);
31 auto op = std::make_unique<ROperator_Gelu>(input_name, output_name, approximate);