Skip to content

Commit

Permalink
ctest 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Baiyuetribe committed Jan 13, 2025
1 parent 5be32e1 commit 0a3aa28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layer/flip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ int Flip::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) cons
else if (dims == 3)
{
top_blob.create(w, h, channels, elemsize, opt.blob_allocator);
if (top_blob.empty())
return -100;
if (axis.w == 1)
{
// w、h、c
Expand Down

0 comments on commit 0a3aa28

Please sign in to comment.