jackwish commented on a change in pull request #4351: [QNN] Lowering for 
Depthwise Convolution.
URL: https://github.com/apache/incubator-tvm/pull/4351#discussion_r347745090
 
 

 ##########
 File path: src/relay/qnn/op/convolution.cc
 ##########
 @@ -84,26 +87,38 @@ WorkloadType GetWorkload(const Array<tvm::relay::Type>& 
arg_types, const QnnConv
 
   const auto kernel_shape = get_shape(arg_types[1]);
   int out_channels, kernel_h, kernel_w;
+  int channel_multiplier = -1;
   if (param->kernel_layout == "OIHW") {
     out_channels = get_const_int(kernel_shape[0]);
     kernel_h = get_const_int(kernel_shape[2]);
     kernel_w = get_const_int(kernel_shape[3]);
+    if (is_depthwise(param)) {
 
 Review comment:
   What about using a variable to hold this?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to