Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove too verbose log with tritonclient #14

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tritony/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import os
import time
import warnings
from concurrent.futures import ThreadPoolExecutor
from typing import Any, Dict, List, Optional, Union

Expand All @@ -19,10 +20,9 @@
try:
from tritonclient.grpc import _get_inference_request as grpc_get_inference_request
except ImportError:
logging.info("tritonclient[all]>=2.34.0")
warnings.warn(UserWarning("tritonclient[all]>=2.34.0"))
from tritonclient.grpc._utils import _get_inference_request as grpc_get_inference_request


from tritonclient.utils import InferenceServerException

from tritony import ASYNC_TASKS
Expand Down Expand Up @@ -117,8 +117,8 @@ async def request_async(protocol: TritonProtocol, model_input: Dict, triton_clie
if "parameters" in grpc_get_inference_request.__code__.co_varnames:
# check tritonclient[all]>=2.34.0, NGC 23.04
model_input["parameters"] = model_input.get("parameters", None)
else:
logger.warning("tritonclient[all]<2.34.0, NGC 21.04")
elif "parameters" in model_input:
warnings.warn(UserWarning("tritonclient[all]<2.34.0, NGC 23.04"))
model_input.pop("parameters")
request = grpc_get_inference_request(
**model_input,
Expand Down
2 changes: 1 addition & 1 deletion tritony/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.12"
__version__ = "0.0.14"