From 25f0d7600efbd00f8d7e8cb81838a49fc3338692 Mon Sep 17 00:00:00 2001 From: Chunseok Lee Date: Mon, 11 Nov 2024 16:51:00 +0900 Subject: [PATCH] fix format --- compiler/luci/pass/src/FuseGRUPass.cpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/compiler/luci/pass/src/FuseGRUPass.cpp b/compiler/luci/pass/src/FuseGRUPass.cpp index 7164c2a3d1d..25a2ef81714 100644 --- a/compiler/luci/pass/src/FuseGRUPass.cpp +++ b/compiler/luci/pass/src/FuseGRUPass.cpp @@ -263,20 +263,18 @@ bool GRUPattern::matched() add_4 = loco::must_cast(logistic_1->x()); CHECK_OR_FALSE(luci::fill(&split_1_out, &split_2_out).with_args_of(add_4)); - /* Let's check the remainig top part - * [In_1] [In_2]--->[Add_2 (with Const)]--->[Out_2] [In_3] - * | \ | | - * | \ [In_4]---[Gather] [Add_3 (with Const)] - * | [FullyConnected_1] | | | - * | | [Out_4] | [Out_3] - * | [Split_1] [FullyConnected_2] - * | / | \ | - * | | | \ [Split_2] - * | [Add_1] ----------------------------------------------/ | | - */ + /* Let's check the remainig top part + * [In_1] [In_2]--->[Add_2 (with Const)]--->[Out_2] [In_3] + * | \ | | + * | \ [In_4]---[Gather] [Add_3 (with + * Const)] | [FullyConnected_1] | | | | + * | [Out_4] | [Out_3] | [Split_1] + * [FullyConnected_2] | / | \ | | | | \ + * [Split_2] | [Add_1] ----------------------------------------------/ | | + */ fc_1 = loco::must_cast(split_1->input()); fc_2 = loco::must_cast(split_2->input()); - + { _weight_ih = loco::must_cast(fc_1->weights()); _bias_ih = dynamic_cast(fc_1->bias()); @@ -285,7 +283,7 @@ bool GRUPattern::matched() if (_weight_ih == nullptr or _weight_hh == nullptr) return false; } - } + } return true; }