Skip to content

Commit

Permalink
[onert] Fix DepthwiseConvOp kernel condition
Browse files Browse the repository at this point in the history
This commit fixes DepthwiseConvOp kernel usage condition.
Eigen kernel is not supproting different width-height stride yet.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh committed Aug 19, 2024
1 parent f3d7383 commit 14261bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/onert/backend/cpu/ops/DepthwiseConvolutionLayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ void DepthwiseConvolutionLayer::convFloat32()
op_params.float_activation_min = output_activation_min;
op_params.float_activation_max = output_activation_max;

// Since DepthwiseConvOp does not support dilation yet, it uses the existing
// kernel in this case.
if (_dilationWidth == 1 && _dilationHeight == 1)
// Since DepthwiseConvOp does not support dilation and different W/H stride yet,
// it uses the existing kernel in this case.
if (_dilationWidth == 1 && _dilationHeight == 1 && _strideWidth == _strideHeight)
{
nnfw::cker::DepthwiseConvOp(op_params, getShape(_input), getBuffer<float>(_input),
getShape(_kernel), getBuffer<float>(_kernel), getShape(_bias),
Expand Down

0 comments on commit 14261bc

Please sign in to comment.