Skip to content

Commit

Permalink
update ConvKernel isAvailable checking
Browse files Browse the repository at this point in the history
  • Loading branch information
cyLi-Tiger committed Oct 29, 2023
1 parent f18ba39 commit 08f1655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/lib/KernelGen/Common/ConvKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ConvImpl : public KernelFunc {
static bool is_channel_broadcast_bias(TContext* ctx) {
if (is_bias(ctx)) {
CCOperand bias = ctx->getAttrOprand("operand:2");
return bias.shape[0] == 1 && bias.shape[2] == 1 && bias.shape[3] == 1;
return (bias.shape[0] == 1 && bias.shape[2] == 1 && bias.shape[3] == 1) || bias.shape.size() == 1;
}
return false;
}
Expand Down

0 comments on commit 08f1655

Please sign in to comment.