Skip to content

Commit

Permalink
ctest 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Baiyuetribe committed Jan 13, 2025
1 parent d8424f8 commit 5be32e1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/layer/flip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,8 @@ int Flip::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) cons
{
// 组合两种翻转:channel维度和行维度同时翻转
const float* ptr = bottom_blob.channel(channels - 1 - i).row(h - 1 - j);
float* outptr = top_blob.channel(i).row(j);
// memcpy(outptr, ptr, w * sizeof(float));
// memcpy(outptr, ptr, w * elemsize);
for (int x = 0; x < w; x++)
outptr[x] = ptr[x];
float* outptr = const_cast<float*>(top_blob.channel(i).row(j));
memcpy(outptr, ptr, w * sizeof(float));
}
}
}
Expand Down

0 comments on commit 5be32e1

Please sign in to comment.