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;