[GPU] Fix remote blob creation to use original shape (#15864)

* Fix remote blob creation to use original shape

* Revert "Fix remote blob creation to use original shape"

This reverts commit 35c674aa97.

* Fix cldnn tensor adjusted blob to be reinterpreted with actual input layout
This commit is contained in:
Taylor Yeonbok Lee 2023-02-21 22:22:51 -08:00 committed by GitHub
parent a6ff809ad7
commit 4fd38844a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -966,7 +966,7 @@ void InferRequest::prepare_input(const cldnn::primitive_id& inputName, Blob::Ptr
auto input_layout = m_graph->GetInputLayouts().find(inputName);
if (input_layout != m_graph->GetInputLayouts().end()) {
if (input_layout->second.format != inputMem->get_layout().format && input_layout->second.is_static()) {
if (input_layout->second != inputMem->get_layout() && input_layout->second.is_static()) {
inputMem = m_graph->GetNetwork()->get_engine().reinterpret_buffer(*inputMem, input_layout->second);
}
}