Skip to content

Commit

Permalink
change default raise on error
Browse files Browse the repository at this point in the history
  • Loading branch information
nnshah1 committed Jan 10, 2024
1 parent d9696b9 commit a8fd94c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tritonserver/_api/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def create_request(self, **kwargs: Unpack[InferenceRequest]) -> InferenceRequest
def async_infer(
self,
inference_request: Optional[InferenceRequest] = None,
raise_on_error: bool = False,
raise_on_error: bool = True,
**kwargs: Unpack[InferenceRequest],
) -> AsyncResponseIterator:
"""Send an inference request to the model for execution
Expand All @@ -156,7 +156,7 @@ def async_infer(
inference request object. If not provided inference
request will be created using remaining keyword
arguments.
raise_on_error : bool
raise_on_error : bool, default True
if True iterator will raise an error on any response
errors returned from the model. If False errors will be
returned as part of the response object.
Expand Down Expand Up @@ -215,7 +215,7 @@ def async_infer(
def infer(
self,
inference_request: Optional[InferenceRequest] = None,
raise_on_error: bool = False,
raise_on_error: bool = True,
**kwargs: Unpack[InferenceRequest],
) -> ResponseIterator:
"""Send an inference request to the model for execution
Expand All @@ -231,7 +231,7 @@ def infer(
inference request object. If not provided inference
request will be created using remaining keyword
arguments.
raise_on_error : bool
raise_on_error : bool, default True
if True iterator will raise an error on any response
errors returned from the model. If False errors will be
returned as part of the response object.
Expand Down

0 comments on commit a8fd94c

Please sign in to comment.