Skip to content

Commit 5218020

Browse files
committed
lint
1 parent 3f6b7af commit 5218020

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

backends/xnnpack/runtime/XNNCompiler.cpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,28 +1454,28 @@ to map the serialized ids, to the new ids generated when defining the
14541454
tensor value
14551455
*/
14561456
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;
14791479
}
14801480

14811481
/*

0 commit comments

Comments
 (0)