Skip to content

Commit

Permalink
Initial commit (#453)
Browse files Browse the repository at this point in the history
* Support Double-Type Infer/Response Parameters
  • Loading branch information
fpetrini15 authored Feb 1, 2024
1 parent 24c1ff7 commit 1dc9836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/library/tritonclient/grpc/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def _get_inference_request(
request.parameters[key].bool_param = value
elif isinstance(value, int):
request.parameters[key].int64_param = value
elif isinstance(value, float):
request.parameters[key].double_param = value
else:
raise_error(
f'The parameter datatype "{type(value)}" for key "{key}" is not supported.'
Expand Down

0 comments on commit 1dc9836

Please sign in to comment.