Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions ngraph_bridge/ngraph_encapsulate_op_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ Status GetPipelinedIOTensorsReadyForExecution(
get<2>(io_tensors_next_iter)};

if (current_iter_pipeline_depth != (!next_io_tensor_bundle.Id)) {
return errors::Internal("Current Pipeline Depth is ",
current_iter_pipeline_depth,
" and next iter pipeline depth is also ",
next_io_tensor_bundle.Id);
delete shared_data;
return errors::Internal(
"Current Pipeline Depth is ", current_iter_pipeline_depth,
" and next iter pipeline depth is also ", next_io_tensor_bundle.Id);
}

shared_data->AddNextIOTensorBundleForDeviceTransfer(
Expand Down Expand Up @@ -154,6 +154,7 @@ Status GetPipelinedIOTensorsReadyForExecution(
NGRAPH_VLOG(2) << "[PREFETCH] COMPUTE: Using device tensors";
}
shared_data->IncrSkipCount();
shared_data->Unref();
}
}

Expand Down