From f512ff66fd8b0b590841b995bf78daf5975a037b Mon Sep 17 00:00:00 2001 From: Tomasz Krupa Date: Tue, 1 Oct 2024 08:06:04 +0000 Subject: [PATCH] Remove unused code --- .../include/intel_gpu/primitives/data.hpp | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/src/plugins/intel_gpu/include/intel_gpu/primitives/data.hpp b/src/plugins/intel_gpu/include/intel_gpu/primitives/data.hpp index d039a06cf8cfaf..9e44b6ff4bbf5b 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/primitives/data.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/primitives/data.hpp @@ -176,34 +176,5 @@ struct data : public primitive_base { } } } - - bool operator==(const data& rhs) const { - auto _allocation_type = mem->get_allocation_type(); - - if (original_size != rhs.original_size - || weights_path != rhs.weights_path - || _allocation_type != rhs.mem->get_allocation_type()) { - return false; - } - - if (_allocation_type == allocation_type::usm_host || _allocation_type == allocation_type::usm_shared) { - if (!std::equal(reinterpret_cast(mem->buffer_ptr()), - reinterpret_cast(mem->buffer_ptr()) + original_size, - reinterpret_cast(rhs.mem->buffer_ptr()))) { - return false; - } - } else { - std::vector _buf, _rhs_buf; - _buf.resize(original_size); - _rhs_buf.resize(original_size); - auto& strm = mem->get_engine()->get_service_stream(); - auto& rhs_strm = rhs.mem->get_engine()->get_service_stream(); - mem->copy_to(strm, _buf.data()); - rhs.mem->copy_to(rhs_strm, _rhs_buf.data()); - if (!std::equal(_buf.begin(), _buf.end(), _rhs_buf.begin())) { - return false; - } - } - } }; } // namespace cldnn