Skip to content

Commit

Permalink
cpu: aarch64: conv: Removing fall through to oneDNN reference impleme…
Browse files Browse the repository at this point in the history
…ntation for depthwise convolution when padding greater then kernel
  • Loading branch information
Radu2k authored and dzarukin committed May 1, 2024
1 parent 297a53a commit 9e0ce86
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cpu/aarch64/acl_convolution_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2020-2023 Arm Ltd. and affiliates
* Copyright 2020-2024 Arm Ltd. and affiliates
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -107,10 +107,6 @@ status_t acl_init_conf(acl_conv_conf_t &acp, memory_desc_t &src_md,
const int r_pad = std::max(static_cast<int>(cd.padding[1][1]), 0);
const int b_pad = std::max(static_cast<int>(cd.padding[1][0]), 0);

if (is_depthwise
&& (t_pad >= kh || b_pad >= kh || l_pad >= kw || r_pad >= kw))
return status::unimplemented;

acp.padstride_info = arm_compute::PadStrideInfo(stride_w, stride_h,
static_cast<unsigned int>(l_pad), static_cast<unsigned int>(r_pad),
static_cast<unsigned int>(t_pad), static_cast<unsigned int>(b_pad),
Expand Down

0 comments on commit 9e0ce86

Please sign in to comment.