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

Python API Beta #299

Merged
merged 91 commits into from
Jan 11, 2024
Merged

Python API Beta #299

merged 91 commits into from
Jan 11, 2024

Conversation

nnshah1
Copy link
Contributor

@nnshah1 nnshah1 commented Dec 7, 2023

Triton Inference Server In-Process Python API [BETA]

@nnshah1 nnshah1 marked this pull request as draft December 7, 2023 01:39
Copy link
Member

@Tabrizian Tabrizian left a comment

Choose a reason for hiding this comment

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

Some minor comments. I think apart from the tensor abstraction and the default allocator changes that we discussed offline it looks good to me.

We definitely need to add more testing but can be part of future PRs.

@nnshah1 nnshah1 marked this pull request as ready for review December 14, 2023 19:46
@nnshah1 nnshah1 marked this pull request as draft December 14, 2023 19:47
rmccorm4
rmccorm4 previously approved these changes Jan 10, 2024
rmccorm4
rmccorm4 previously approved these changes Jan 11, 2024
@nnshah1 nnshah1 requested review from Tabrizian and rmccorm4 January 11, 2024 15:23
@nnshah1 nnshah1 merged commit 6d0cd38 into main Jan 11, 2024
1 check passed
@staticmethod
def from_dlpack(owner: Any) -> MemoryBuffer:
if not hasattr(owner, "__dlpack__"):
raise InvalidArgumentError("Object does not support DLpack protocol")
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit: Maybe change to "Object does not have __dlpack__ method". Older versions of DLPack protocol allow passing a capsule irectly to from_dlpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

8 participants