[GPU] Fix coverity issues(#11876) (#11876)

- CID: 1489915
This commit is contained in:
Paul Youngsoo Ahn 2022-06-23 13:21:05 +09:00 committed by GitHub
parent b490ef545f
commit 11a9888c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ void combine_bf_with_first_spatial_dim(cldnn::layout& l) {
l.size.spatial[last_spatial_dim_idx] = 1;
}
int64_t get_f_offset(cldnn::layout l, dnnl::memory::desc&& desc) {
int64_t get_f_offset(cldnn::layout&& l, dnnl::memory::desc&& desc) {
int64_t offset = 0;
auto f_padding = l.data_padding.lower_size().feature[0];
if (f_padding != 0) {

View File

@ -33,7 +33,7 @@ dnnl::memory::desc layout_to_memory_desc(cldnn::layout l, dnnl::memory::format_t
dnnl::algorithm convert_activation_func(cldnn::activation_func func);
cldnn::format find_format(dnnl::memory::desc desc, bool is_grouped = false);
int64_t get_f_offset(cldnn::layout l, dnnl::memory::desc&& desc);
int64_t get_f_offset(cldnn::layout&& l, dnnl::memory::desc&& desc);
// If the values in the tensor are identical, make it as per-tensor value
template <typename T>