From 722662d1802d6a66e71262665a3b97bf49609508 Mon Sep 17 00:00:00 2001 From: Taylor Yeonbok Lee Date: Wed, 16 Mar 2022 08:30:18 +0900 Subject: [PATCH] Fix lint errors --- .../intel_gpu/include/intel_gpu/runtime/layout.hpp | 2 +- .../intel_gpu/src/graph/impls/ocl/permute.cpp | 2 +- src/plugins/intel_gpu/src/plugin/infer_request.cpp | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/intel_gpu/include/intel_gpu/runtime/layout.hpp b/src/plugins/intel_gpu/include/intel_gpu/runtime/layout.hpp index 9e1069402d94b4..7477859572acb9 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/runtime/layout.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/runtime/layout.hpp @@ -329,7 +329,7 @@ struct layout { : data_type(data_type), format(fmt), size(size), data_padding(apadding) { } layout(data_types data_type, cldnn::format fmt, tensor size, padding apadding = padding()) - : data_type(data_type), format(fmt),data_padding(apadding) { + : data_type(data_type), format(fmt), data_padding(apadding) { auto sizes = fmt == format::any ? size.sizes() : size.sizes(layout::get_default_format(fmt.dimension())); ov::Shape shape(sizes.begin(), sizes.end()); this->size = ov::PartialShape(shape); diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/permute.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/permute.cpp index e6e3f091d58455..7da39bee51e181 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/permute.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/permute.cpp @@ -40,7 +40,7 @@ inline std::vector convert_permute_order(const std::vector& return cldnn_order; } -} +} // namespace struct permute_impl : typed_primitive_impl_ocl { using parent = typed_primitive_impl_ocl; diff --git a/src/plugins/intel_gpu/src/plugin/infer_request.cpp b/src/plugins/intel_gpu/src/plugin/infer_request.cpp index 5b2a98f5647ae6..a05eb11689b3f6 100644 --- a/src/plugins/intel_gpu/src/plugin/infer_request.cpp +++ b/src/plugins/intel_gpu/src/plugin/infer_request.cpp @@ -672,12 +672,12 @@ void InferRequest::copy_output_data(cldnn::memory::ptr src, Blob::Ptr dst) { OV_ITT_SCOPED_TASK(itt::domains::intel_gpu_plugin, "InferRequest::copy_output_data"); auto& stream = m_graph->GetNetwork()->get_stream(); switch (dst->getTensorDesc().getPrecision()) { - case Precision::FP32: copyResultToOutputBlob(src, dst,stream); break; - case Precision::FP16: copyResultToOutputBlob(src, dst,stream); break; - case Precision::I32: copyResultToOutputBlob(src, dst,stream); break; - case Precision::I64: copyResultToOutputBlob(src, dst,stream); break; - case Precision::U8: copyResultToOutputBlob(src, dst,stream); break; - case Precision::I8: copyResultToOutputBlob(src, dst,stream); break; + case Precision::FP32: copyResultToOutputBlob(src, dst, stream); break; + case Precision::FP16: copyResultToOutputBlob(src, dst, stream); break; + case Precision::I32: copyResultToOutputBlob(src, dst, stream); break; + case Precision::I64: copyResultToOutputBlob(src, dst, stream); break; + case Precision::U8: copyResultToOutputBlob(src, dst, stream); break; + case Precision::I8: copyResultToOutputBlob(src, dst, stream); break; default: IE_THROW(NotImplemented) << "The plugin does not support output " << dst->getTensorDesc().getPrecision() << " precision"; } }