@@ -1454,28 +1454,28 @@ to map the serialized ids, to the new ids generated when defining the
1454
1454
tensor value
1455
1455
*/
1456
1456
Error defineGeluNode (
1457
- xnn_subgraph_t subgraph_ptr,
1458
- const std::unordered_map<uint32_t , uint32_t >& remapped_ids,
1459
- const NodePtr node,
1460
- const fb_xnnpack::XNNGraph* graph) noexcept {
1461
- MAYBE_UNUSED (graph);
1462
-
1463
- auto graph_node = node->xnode_union_as_XNNGelu ();
1464
-
1465
- xnn_status status = xnn_define_gelu (
1466
- subgraph_ptr,
1467
- remapped_ids.at (graph_node->input_id ()),
1468
- remapped_ids.at (graph_node->output_id ()),
1469
- graph_node->flags ());
1470
-
1471
- ET_CHECK_OR_RETURN_ERROR (
1472
- status == xnn_status_success,
1473
- Internal,
1474
- " Failed to create gelu node %i with code: %s" ,
1475
- node->debug_handle (),
1476
- xnn_status_to_string (status));
1477
-
1478
- return Error::Ok;
1457
+ xnn_subgraph_t subgraph_ptr,
1458
+ const std::unordered_map<uint32_t , uint32_t >& remapped_ids,
1459
+ const NodePtr node,
1460
+ const fb_xnnpack::XNNGraph* graph) noexcept {
1461
+ MAYBE_UNUSED (graph);
1462
+
1463
+ auto graph_node = node->xnode_union_as_XNNGelu ();
1464
+
1465
+ xnn_status status = xnn_define_gelu (
1466
+ subgraph_ptr,
1467
+ remapped_ids.at (graph_node->input_id ()),
1468
+ remapped_ids.at (graph_node->output_id ()),
1469
+ graph_node->flags ());
1470
+
1471
+ ET_CHECK_OR_RETURN_ERROR (
1472
+ status == xnn_status_success,
1473
+ Internal,
1474
+ " Failed to create gelu node %i with code: %s" ,
1475
+ node->debug_handle (),
1476
+ xnn_status_to_string (status));
1477
+
1478
+ return Error::Ok;
1479
1479
}
1480
1480
1481
1481
/*
0 commit comments