Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Remove the dependency of private to_dlpack - #200

Merged
yixingli-apple merged 1 commit into
apple:mainfrom
yixingli-apple:use-public-ndarray-numpy
Dec 4, 2026
Merged

yixingli-apple merged 1 commit into
apple:mainfrom
yixingli-apple:use-public-ndarray-numpy

Conversation

@yixingli-apple

@yixingli-apple yixingli-apple commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Convert coreai runtime outputs to torch via NDArray.numpy() rather than reaching into the private _tensor.to_dlpack(). bfloat16 is reinterpreted from uint16 since torch.from_numpy rejects ml_dtypes.bfloat16.

Convert coreai runtime outputs to torch via NDArray.numpy() rather than
reaching into the private _tensor.to_dlpack(). bfloat16 is reinterpreted
from uint16 since torch.from_numpy rejects ml_dtypes.bfloat16.
@yixingli-apple
yixingli-apple force-pushed the use-public-ndarray-numpy branch from f1f9d6d to cca5a6b Compare December 4, 2026 01:44
@yixingli-apple
yixingli-apple merged commit 5edd554 into apple:main Dec 4, 2026
15 checks passed
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.

2 participants