Skip to content

Commit

Permalink
Fix channel check for Conv2dTransposed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyken17 committed Nov 6, 2021
1 parent 4fdd06e commit b34f268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/op/nn/convolution.h
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ bool Conv2DTransposeRel(const Array<Type>& types, int num_inputs, const Attrs& a
<< " kernel_size=" << param->kernel_size << " wshape=" << Array<IndexExpr>(wshape);
}
if (param->channels.defined()) {
ICHECK(reporter->AssertEQ(param->channels, wshape[1]))
ICHECK(reporter->AssertEQ(param->channels, wshape[0]))
<< "Conv2DTransposed: shape of weight is inconsistent with channels, "
<< " channels=" << param->channels << " wshape=" << Array<IndexExpr>(wshape);
}
Expand Down

0 comments on commit b34f268

Please sign in to comment.