-
Notifications
You must be signed in to change notification settings - Fork 104
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
Python API Beta #299
Conversation
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.
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.
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
Co-authored-by: Ryan McCormick <[email protected]>
@staticmethod | ||
def from_dlpack(owner: Any) -> MemoryBuffer: | ||
if not hasattr(owner, "__dlpack__"): | ||
raise InvalidArgumentError("Object does not support DLpack protocol") |
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.
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
Triton Inference Server In-Process Python API [BETA]