File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,15 @@ TVM_REGISTER_GLOBAL("tvm.contrib.miopen.conv2d.setup")
5656 MIOpenThreadEntry* entry_ptr = MIOpenThreadEntry::ThreadLocal ();
5757 // assertion for group count;
5858 assert (n_group > 0 && " Group Size > 0 is expected" );
59- if (n_group> 1 )
60- mode = 2 ;
59+ if (n_group > 1 )
60+ assert ( mode > 1 && " Group /Depthwise Conv mode when num of groups > 1 " );
6161 // Set Mode
6262 entry_ptr->conv_entry .mode = static_cast <miopenConvolutionMode_t>(mode);
6363 // Set Ctx
6464 entry_ptr->conv_entry .ctx = TVMContext{kDLROCM , 0 };
6565 // Set Data Type
6666 entry_ptr->conv_entry .data_type = static_cast <miopenDataType_t>(
67- dtype); // MIOpen supports fp32(miopenFloat), fp16(miopenHalf) at
67+ dtype); // MIOpen supports fp32(miopenFloat), fp16(miopenHalf), int32, int8 at
6868 // this moment.
6969 // Set Desc
7070 MIOPEN_CALL (miopenInitConvolutionDescriptor (entry_ptr->conv_entry .conv_desc ,
@@ -81,7 +81,7 @@ TVM_REGISTER_GLOBAL("tvm.contrib.miopen.conv2d.setup")
8181 MIOPEN_CALL (miopenSet4dTensorDescriptor (entry_ptr->conv_entry .filter_desc ,
8282 entry_ptr->conv_entry .data_type ,
8383 w_dim0,
84- w_dim1/group ,
84+ w_dim1/n_group ,
8585 w_dim2,
8686 w_dim3));
8787 // Set Input
You can’t perform that action at this time.
0 commit comments