Simplified cancel behavior (#4224)
This commit is contained in:
@@ -162,10 +162,13 @@ public:
|
||||
CALL_STATUS_FNC_NO_ARGS(Infer);
|
||||
}
|
||||
|
||||
StatusCode Cancel() {
|
||||
ResponseDesc resp;
|
||||
if (actual == nullptr) THROW_IE_EXCEPTION << "InferRequest was not initialized.";
|
||||
return actual->Cancel(&resp);
|
||||
/**
|
||||
* @copybrief IInferRequest::Cancel
|
||||
*
|
||||
* Wraps IInferRequest::Cancel
|
||||
*/
|
||||
void Cancel() {
|
||||
CALL_STATUS_FNC_NO_ARGS(Cancel);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user