OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU] Fix OOB in lrn (#26979)
Pavel Durandinecec8799a739
diff --git a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/lrn_within_channel_byxf_opt.cl b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/lrn_within_channel_byxf_opt.clindex b2ca4e2115d..4e770536348 100644--- a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/lrn_within_channel_byxf_opt.cl+++ b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/lrn_within_channel_byxf_opt.cl@@ -33,7 +33,7 @@ KERNEL(lrn_within_channel_byxf_opt)(const int x_start = ((int)x - PADDING);const int y_start = ((int)y - PADDING);- int input_offset = (GET_DATA_INDEX(INPUT0, b, f, y_start, x_start))/8;+ int input_offset = ((int)(GET_DATA_INDEX(INPUT0, b, f, y_start, x_start)))/8;VECTOR_TYPE feature_block;