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

Renaming the tensors and removing tools #7

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Renaming the tensors and removing tools #7

merged 2 commits into from
Oct 10, 2023

Conversation

tanmayv25
Copy link
Contributor

@tanmayv25 tanmayv25 commented Oct 10, 2023

The changes are being cherry-picked from here: triton-inference-server/tutorials#59

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]
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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?

Suggested change
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

Copy link
Contributor Author

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 ^^^

@tanmayv25 tanmayv25 requested review from nnshah1 and pskiran1 October 10, 2023 00:31
@dyastremsky
Copy link
Contributor

Great changes. Fantastic work!

@tanmayv25 tanmayv25 merged commit aa7b56f into main Oct 10, 2023
3 checks passed
@tanmayv25 tanmayv25 deleted the tanmayv-cp branch October 10, 2023 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants