How to return custom error code & message from torchserve workflow?
Torchserve models now support
context.set_all_response_status(code=513)
and throwing PredictionException(message=traceback.format_exc(), error_code=513)
Torchserve models now support
context.set_all_response_status(code=513)
and throwing PredictionException(message=traceback.format_exc(), error_code=513)