Skip to content

Commit

Permalink
Fix maxpool that doesn't throw exception
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 29, 2019
1 parent 847cc25 commit 3294539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dabnn/layers/MaxPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ void MaxPool::forward_impl() const {
} else if (kernel_h == 2 && kernel_w == 2) {
maxpool2x2(*padded_mat, *output_mat, stride_h, stride_w);
} else {
std::invalid_argument("Not supported max_pool");
throw std::invalid_argument("Not supported max_pool");
}
#else
std::invalid_argument("Not supported max_pool");
throw std::invalid_argument("Not supported max_pool");
#endif // __aarch64__
}

Expand Down

0 comments on commit 3294539

Please sign in to comment.