[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:
parent
a6ff809ad7
commit
4fd38844a2
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user