aboutsummaryrefslogtreecommitdiff
path: root/src/gpu/cl/operators/ClWinogradConv2d.cpp
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2022-08-10 15:58:51 +0100
committerRamy Elgammal <ramy.elgammal@arm.com>2022-08-11 12:36:34 +0100
commitc4fe78527c12910d380d8eb2e5e4ed6a52df3a65 (patch)
treebd02ca981bb6a3d92c134d96187757d70a812128 /src/gpu/cl/operators/ClWinogradConv2d.cpp
parentdde3756a07ee5c65ac96b4f6b3cd77d54470abb6 (diff)
downloadComputeLibrary-c4fe78527c12910d380d8eb2e5e4ed6a52df3a65.tar.gz
Disable unsafe FP optimizations in Winograd Output Transform
The unsafe FP optimizations flag causes accuracy issues when certain conditions are met regarding the hardware type, data type and the activation function. Resolves: COMPMID-5375 Change-Id: I1b0b06549b8c108617962d006a20dd263d5e3c21 Signed-off-by: Gunes Bayir <gunes.bayir@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8061 Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/gpu/cl/operators/ClWinogradConv2d.cpp')
-rw-r--r--src/gpu/cl/operators/ClWinogradConv2d.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/cl/operators/ClWinogradConv2d.cpp b/src/gpu/cl/operators/ClWinogradConv2d.cpp
index ffa1effc74..b4163a5986 100644
--- a/src/gpu/cl/operators/ClWinogradConv2d.cpp
+++ b/src/gpu/cl/operators/ClWinogradConv2d.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2021 Arm Limited.
+ * Copyright (c) 2018-2022 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -214,6 +214,7 @@ void ClWinogradConv2d::configure(const ClCompileContext &compile_context, ITenso
(src->data_type() == DataType::F16)));
// Configure output transform
+ _output_transform->set_target(CLScheduler::get().target());
_output_transform->configure(compile_context, &_batched_mm_output, biases, dst, winograd_info, act_info);
_aux_mem = _batched_mm.workspace();