Skip to content

Commit

Permalink
if layer do not support vulkan, pass the test
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Mar 5, 2020
1 parent a5525a0 commit 2fa22dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testutil.h
Expand Up @@ -210,6 +210,7 @@ int test_layer(int typeindex, const ncnn::ParamDict& pd, const std::vector<ncnn:

ncnn::Option opt = _opt;

if (!op->support_vulkan) opt.use_vulkan_compute = false;
if (!op->support_packing) opt.use_packing_layout = false;

#if NCNN_VULKAN
Expand Down Expand Up @@ -438,6 +439,7 @@ int test_layer(int typeindex, const ncnn::ParamDict& pd, const std::vector<ncnn:
(*func)((T*)op);
}

if (!op->support_vulkan) opt.use_vulkan_compute = false;
if (!op->support_packing) opt.use_packing_layout = false;

#if NCNN_VULKAN
Expand Down

0 comments on commit 2fa22dc

Please sign in to comment.