From dd3e910e21e3c22e2f4c8172d48386642527bbc4 Mon Sep 17 00:00:00 2001 From: Raman Sarokin Date: Tue, 16 Jun 2020 11:57:20 -0700 Subject: [PATCH] Changed address space of default samplers. PiperOrigin-RevId: 316728298 Change-Id: Ib74d1bbbb5561a29aa569e2960a3776eceb9f237 --- tensorflow/lite/delegates/gpu/cl/kernels/util.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tensorflow/lite/delegates/gpu/cl/kernels/util.cc b/tensorflow/lite/delegates/gpu/cl/kernels/util.cc index 73fc0e744bb..3161a73a18f 100644 --- a/tensorflow/lite/delegates/gpu/cl/kernels/util.cc +++ b/tensorflow/lite/delegates/gpu/cl/kernels/util.cc @@ -119,13 +119,13 @@ std::string GetCommonDefines(CalculationsPrecision precision) { } result += - "const sampler_t smp_edge = CLK_NORMALIZED_COORDS_FALSE | " + "__constant sampler_t smp_edge = CLK_NORMALIZED_COORDS_FALSE | " "CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST;\n"; result += - "const sampler_t smp_none = CLK_NORMALIZED_COORDS_FALSE | " + "__constant sampler_t smp_none = CLK_NORMALIZED_COORDS_FALSE | " "CLK_ADDRESS_NONE | CLK_FILTER_NEAREST;\n"; result += - "const sampler_t smp_zero = CLK_NORMALIZED_COORDS_FALSE | " + "__constant sampler_t smp_zero = CLK_NORMALIZED_COORDS_FALSE | " "CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST;\n"; return result;