Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyems committed Mar 11, 2024
1 parent 192950d commit cdc36e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/core/providers/cuda/cuda_execution_provider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ Status CUDAExecutionProvider::PerThreadContext::ReplayGraph(CudaGraphAnnotation_
void CUDAExecutionProvider::PerThreadContext::IncrementRegularRunCountBeforeGraphCapture(
CudaGraphAnnotation_t cuda_graph_annotation_id) {
if (graph_id_to_run_count_.find(cuda_graph_annotation_id) == graph_id_to_run_count_.end()) {
graph_id_to_run_count_[cuda_graph_annotation_id] = 0;
graph_id_to_run_count_[cuda_graph_annotation_id] = 1;
return;
}
graph_id_to_run_count_[cuda_graph_annotation_id]++;
}
Expand Down

0 comments on commit cdc36e5

Please sign in to comment.