Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ int ncnn_option_get_use_vulkan_compute(ncnn_option_t opt)
#if NCNN_VULKAN
return ((Option*)opt)->use_vulkan_compute;
#else
(void)opt;
return 0;
#endif
}
Expand Down
2 changes: 0 additions & 2 deletions src/layer/interp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,13 @@ int Interp::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) co
{
int w = bottom_blob.w;
int h = bottom_blob.h;
int channels = bottom_blob.c;

int outh = output_height;
int outw = output_width;
if (bottom_blob.dims == 1)
{
h = 1;
w = 1;
channels = bottom_blob.w;
}
if (outh == 0 || outw == 0)
{
Expand Down