Skip to content

Commit

Permalink
apply code-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
junwha authored and github-actions[bot] committed Oct 14, 2024
1 parent 190f85b commit b2ee3aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/layer/arm/shufflechannel_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ int ShuffleChannel_arm::forward(const Mat& bottom_blob, Mat& top_blob, const Opt
outptr0 += 4;
}

for (int i = 0; i < 4; i++) {
for (int i = 0; i < 4; i++)
{
if (i % 2)
{
*outptr = *ptr1;
Expand Down Expand Up @@ -393,7 +394,8 @@ int ShuffleChannel_arm::forward_bf16s_fp16s(const Mat& bottom_blob, Mat& top_blo
outptr0 += 8;
}

for (int i = 0; i < 8; i++) {
for (int i = 0; i < 8; i++)
{
if (i % 2)
{
*outptr = *ptr1;
Expand Down Expand Up @@ -640,7 +642,8 @@ int ShuffleChannel_arm::forward_bf16s_fp16s(const Mat& bottom_blob, Mat& top_blo
outptr0 += 4;
}

for (int i = 0; i < 4; i++) {
for (int i = 0; i < 4; i++)
{
if (i % 2)
{
*outptr = *ptr1;
Expand Down
9 changes: 6 additions & 3 deletions src/layer/x86/shufflechannel_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ int ShuffleChannel_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Opt
outptr += 16;
}

for (int i = 0; i < 16; i++) {
for (int i = 0; i < 16; i++)
{
if (i % 2)
{
*outptr = *ptr1;
Expand Down Expand Up @@ -402,7 +403,8 @@ int ShuffleChannel_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Opt
outptr += 8;
}

for (int i = 0; i < 8; i++) {
for (int i = 0; i < 8; i++)
{
if (i % 2)
{
*outptr = *ptr1;
Expand Down Expand Up @@ -649,7 +651,8 @@ int ShuffleChannel_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Opt
outptr += 4;
}

for (int i = 0; i < 4; i++) {
for (int i = 0; i < 4; i++)
{
if (i % 2)
{
*outptr = *ptr1;
Expand Down

0 comments on commit b2ee3aa

Please sign in to comment.