crazydemo commented on a change in pull request #10421:
URL: https://github.com/apache/tvm/pull/10421#discussion_r819310908
##########
File path: src/relay/op/nn/convolution.cc
##########
@@ -244,7 +250,12 @@ bool Conv2DRel(const Array<Type>& types, int num_inputs,
const Attrs& attrs,
ICHECK_EQ(param->dilation.size(), 2);
Array<IndexExpr> wshape;
- if (is_depthwise) {
+ if (is_group) {
+ // infer weight's shape for group convolution
+ wshape = {{param->groups, indexdiv(param->channels, param->groups),
+ indexdiv(dshape_nchw[1], param->groups),
param->kernel_size[0],
+ param->kernel_size[1]}};
Review comment:
OK, I will change the name :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]