Skip to content

Commit

Permalink
Only store the state in response factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabrizian committed Aug 30, 2023
1 parent 73a923d commit 03d0d0f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/infer_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -660,13 +660,9 @@ class InferenceRequest {
secondary_stats_aggregator_ = secondary_stats_aggregator;
}

void Cancel()
{
response_factory_->Cancel();
is_cancelled_ = true;
}
void Cancel() { response_factory_->Cancel(); }

bool IsCancelled() { return is_cancelled_; }
bool IsCancelled() { return response_factory_->IsCancelled(); }

#endif // TRITON_ENABLE_STATS

Expand Down Expand Up @@ -774,9 +770,6 @@ class InferenceRequest {

// Sequence I/O states used for implicit state.
std::shared_ptr<SequenceStates> sequence_states_;

// Cancellation status
std::atomic<bool> is_cancelled_;
};

std::ostream& operator<<(std::ostream& out, const InferenceRequest& request);
Expand Down

0 comments on commit 03d0d0f

Please sign in to comment.