Skip to content

Commit

Permalink
Merge pull request #12 from PoliOwl/non_zero_dynamic_shape
Browse files Browse the repository at this point in the history
[VPU] Fixed allocating dynamic blobs in myriad_infer_request
  • Loading branch information
slyalin authored Aug 26, 2021
2 parents 9dd3eb0 + 07301a7 commit fee51a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void MyriadInferRequest::GetResult() {
"Can not find tensor descriptor by plugin for {} output", ieBlobName);
const auto& dynOutputDesc = descFromPlugin->second;

if (ieBlob->getTensorDesc().getLayout() != dynOutputDesc.getLayout()) {
if (ieBlob->getTensorDesc().getDims() != dynOutputDesc.getDims()) {
ieBlob->deallocate();
ieBlob->getTensorDesc().reshape(dynOutputDesc.getDims(), dynOutputDesc.getLayout());
ieBlob->allocate();
Expand Down

0 comments on commit fee51a5

Please sign in to comment.