Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary4d, unary4d #3443

Merged
merged 21 commits into from
Dec 28, 2021
Prev Previous commit
Next Next commit
apply code-format changes
  • Loading branch information
nihui authored and actions-user committed Dec 24, 2021
commit 5690980f0faa3cff1bcf6fc0baae509202472e71
8 changes: 4 additions & 4 deletions src/layer/vulkan/binaryop_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ int BinaryOp_vulkan::forward(const std::vector<VkMat>& bottom_blobs, std::vector
constants[14].i = top_blob.cstep;

const Pipeline* pipeline = out_elempack == 8 ? pipeline_binaryop_pack8
: out_elempack == 4 ? pipeline_binaryop_pack4
: pipeline_binaryop;
: out_elempack == 4 ? pipeline_binaryop_pack4
: pipeline_binaryop;

cmd.record_pipeline(pipeline, bindings, constants, top_blob);
}
Expand Down Expand Up @@ -664,8 +664,8 @@ int BinaryOp_vulkan::forward(const std::vector<VkImageMat>& bottom_blobs, std::v
constants[14].i = 0; //top_blob.cstep;

const Pipeline* pipeline = out_elempack == 8 ? pipeline_binaryop_pack8
: out_elempack == 4 ? pipeline_binaryop_pack4
: pipeline_binaryop;
: out_elempack == 4 ? pipeline_binaryop_pack4
: pipeline_binaryop;

cmd.record_pipeline(pipeline, bindings, constants, top_blob);
}
Expand Down