Skip to content

Commit

Permalink
resolve conflicts and handle feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
amberhassaan committed Oct 11, 2023
1 parent e146046 commit 220e423
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ocl/convolutionocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,12 @@ void ConvolutionDescriptor::ValidateTensors(const ConvTensors& tensors) const
// strides in NCHW order for some weird reason.
g_stride_index = td.GetStrides().size() - 1;
}
else
{
MIOPEN_THROW(miopenStatusInternalError, "Layout not supported for grouped convolution");
}

if(g_stride_index != 1)
if(g_stride_index != -1)
{
return (td.GetStrides()[g_stride_index] % this->group_count) != 0;
}
Expand Down
4 changes: 4 additions & 0 deletions test/gtest/conv_api_strided_tensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class ConvStridedTensors : public ::testing::Test
std::vector<float> h_output;
};

/// \todo re-enable this test after NCDHW grouped convolution lands (PR 2429)
/// \todo add cpu reference convolution for verification --amberhassaan
#if 0
TEST_F(ConvStridedTensors, ConvStridedTensorsNotImplemented)
{
auto device = Device(handle);
Expand Down Expand Up @@ -194,3 +197,4 @@ TEST_F(ConvStridedTensors, ConvStridedTensorsNotImplemented)
miopenStatusSuccess);
ASSERT_TRUE(device.Synchronize());
}
#endif

0 comments on commit 220e423

Please sign in to comment.