Skip to content

Commit

Permalink
Fixed indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
oandreeva-nv committed Jul 2, 2024
1 parent 55369e2 commit b6ac93e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/identity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,8 @@ TRITONBACKEND_ModelInstanceExecute(
}
}

for (uint32_t count = 0; count < nesting_count; count++){
std::string end_span_str = std::string("CUSTOM_ACTIVITY" + std::to_string(count) + "_END");
for (uint32_t count = 0; count < nesting_count ; count++){
std::string end_span_str = std::string("CUSTOM_ACTIVITY" + std::to_string(nesting_count - count - 1 ) + "_END");
SET_TIMESTAMP(custom_activity_ns);
GUARDED_RESPOND_IF_ERROR(
responses, r, TRITONSERVER_InferenceTraceReportActivity(trace, custom_activity_ns, end_span_str.c_str()));
Expand Down

0 comments on commit b6ac93e

Please sign in to comment.