aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/kernels/CpuActivationKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/kernels/CpuActivationKernel.cpp')
-rw-r--r--src/cpu/kernels/CpuActivationKernel.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/cpu/kernels/CpuActivationKernel.cpp b/src/cpu/kernels/CpuActivationKernel.cpp
index f1e485883c..e8ece26f17 100644
--- a/src/cpu/kernels/CpuActivationKernel.cpp
+++ b/src/cpu/kernels/CpuActivationKernel.cpp
@@ -208,18 +208,9 @@ void CpuActivationKernel::configure(const ITensorInfo *src, ITensorInfo *dst, Ac
Window win;
- if(src->data_layout() != DataLayout::NHWC)
- {
- // Use squashed window
- std::tie(win, _split_dimension) = calculate_squashed_or_max_window(*src);
- ICPPKernel::configure(win);
- }
- else
- {
- // Configure kernel window
- win = calculate_max_window(*src, Steps());
- ICPPKernel::configure(win);
- }
+ // Use squashed window
+ std::tie(win, _split_dimension) = calculate_squashed_or_max_window(*src);
+ ICPPKernel::configure(win);
}
Status CpuActivationKernel::validate(const ITensorInfo *src, const ITensorInfo *dst, const ActivationLayerInfo &act_info)