diff options
author | Omar Al Khatib <omar.alkhatib@arm.com> | 2023-03-07 09:57:49 +0000 |
---|---|---|
committer | Omar Al Khatib <omar.alkhatib@arm.com> | 2023-03-07 14:47:24 +0000 |
commit | 3c7c1fa6c589f75fd8146a47fe71094c172fd56a (patch) | |
tree | f9f8aba8d3a22c4bb66b067d6a596d2404bcf56a /src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplatePool2d.cpp | |
parent | 47f177e679874dc901888973c5fc237b756b38cb (diff) | |
download | ComputeLibrary-3c7c1fa6c589f75fd8146a47fe71094c172fd56a.tar.gz |
Resolve the presence of variables that are unused in release mode in Dynamic Fusion source files
Resloves: [COMPMID-5960]
Signed-off-by: Omar Al Khatib <omar.alkhatib@arm.com>
Change-Id: I1b11f01c51a029082ed05823717b4c4ae4897798
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9270
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplatePool2d.cpp')
-rw-r--r-- | src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplatePool2d.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplatePool2d.cpp b/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplatePool2d.cpp index bbff8ba98f..fb86e163f2 100644 --- a/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplatePool2d.cpp +++ b/src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplatePool2d.cpp @@ -40,11 +40,10 @@ namespace dynamic_fusion namespace { // Shape indexes for NHWC Datalayout -constexpr static int32_t batch_idx = 3; constexpr static int32_t height_idx = 2; constexpr static int32_t width_idx = 1; constexpr static int32_t channel_idx = 0; -} +} // namespace ClTemplatePool2d::ClTemplatePool2d(ComponentId id, const ArgumentPack<ITensorInfo> &tensors, const Attributes &attributes, @@ -390,12 +389,12 @@ TagLUT ClTemplatePool2d::get_tag_lut(const GpuKernelVariableTable &vtable, const lut["meta_kernel_id"] = id(); // Retrieve relevant data - const auto padding = _attributes.pad(); - const auto stride = _attributes.stride(); - const auto pool_size = _attributes.pool_size(); - const auto data_type = _src->data_type(); - const auto use_fp_mixed_precision = (_src->data_type() == DataType::F16) && _settings.mixed_precision() && _attributes.pool_type() != PoolingType::MAX; - const std::string max_initial_value = _settings.use_inf_as_limit() ? "(-INFINITY)" : float_to_string_with_full_precision(std::numeric_limits<float>::lowest()); + const auto padding = _attributes.pad(); + const auto stride = _attributes.stride(); + const auto pool_size = _attributes.pool_size(); + const auto data_type = _src->data_type(); + const auto use_fp_mixed_precision = (_src->data_type() == DataType::F16) && _settings.mixed_precision() && _attributes.pool_type() != PoolingType::MAX; + const std::string max_initial_value = _settings.use_inf_as_limit() ? "(-INFINITY)" : float_to_string_with_full_precision(std::numeric_limits<float>::lowest()); // pool specific lut["STRIDE_X"] = stride.x(); |