-
Notifications
You must be signed in to change notification settings - Fork 20
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
Renaming the tensors and removing tools #7
Conversation
if isinstance(prompt, bytes): | ||
prompt = prompt.decode("utf-8") | ||
stream = pb_utils.get_input_tensor_by_name(request, "STREAM").as_numpy()[0] | ||
stream = pb_utils.get_input_tensor_by_name(request, "stream").as_numpy()[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one other change to be picked up - making stream an optional param:
https://github.com/triton-inference-server/tutorials/pull/58/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its already included in the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tanmayv25 but don't we need to check here if it is included?
stream = pb_utils.get_input_tensor_by_name(request, "stream").as_numpy()[0] | |
stream = pb_utils.get_input_tensor_by_name(request, "stream") | |
if stream: | |
stream = stream.as_numpy()[0] | |
else: | |
stream = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I missed it.
Probably one more test case to include in our CI tests.
@pskiran1 ^^^
Great changes. Fantastic work! |
The changes are being cherry-picked from here: triton-inference-server/tutorials#59