Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonbok committed Mar 15, 2022
1 parent f1a8d1f commit 722662d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/include/intel_gpu/runtime/layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/src/graph/impls/ocl/permute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inline std::vector<uint16_t> convert_permute_order(const std::vector<uint16_t>&

return cldnn_order;
}
}
} // namespace

struct permute_impl : typed_primitive_impl_ocl<permute> {
using parent = typed_primitive_impl_ocl<permute>;
Expand Down
12 changes: 6 additions & 6 deletions src/plugins/intel_gpu/src/plugin/infer_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(src, dst,stream); break;
case Precision::FP16: copyResultToOutputBlob<uint16_t>(src, dst,stream); break;
case Precision::I32: copyResultToOutputBlob<int32_t>(src, dst,stream); break;
case Precision::I64: copyResultToOutputBlob<int64_t>(src, dst,stream); break;
case Precision::U8: copyResultToOutputBlob<uint8_t>(src, dst,stream); break;
case Precision::I8: copyResultToOutputBlob<int8_t>(src, dst,stream); break;
case Precision::FP32: copyResultToOutputBlob<float>(src, dst, stream); break;
case Precision::FP16: copyResultToOutputBlob<uint16_t>(src, dst, stream); break;
case Precision::I32: copyResultToOutputBlob<int32_t>(src, dst, stream); break;
case Precision::I64: copyResultToOutputBlob<int64_t>(src, dst, stream); break;
case Precision::U8: copyResultToOutputBlob<uint8_t>(src, dst, stream); break;
case Precision::I8: copyResultToOutputBlob<int8_t>(src, dst, stream); break;
default: IE_THROW(NotImplemented) << "The plugin does not support output " << dst->getTensorDesc().getPrecision() << " precision";
}
}
Expand Down

0 comments on commit 722662d

Please sign in to comment.