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

Direct access to uint16 values in HalfStorage #18

Open
pdevine opened this issue Apr 11, 2024 · 0 comments
Open

Direct access to uint16 values in HalfStorage #18

pdevine opened this issue Apr 11, 2024 · 0 comments

Comments

@pdevine
Copy link

pdevine commented Apr 11, 2024

When I'm using the pytorch interface and getting HalfStorage (i.e. 16 bit float values) I'd like to be able to get access to the underlying []uint16 data instead of having it convert to []float32.

The way it's written I have to take the float32 values and convert them back into uint16 which results in a lot of unnecessary conversions.

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

No branches or pull requests

1 participant