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

Allows setting the dtype using a string. #1045

Merged
merged 2 commits into from May 15, 2023
Merged

Allows setting the dtype using a string. #1045

merged 2 commits into from May 15, 2023

Conversation

dfalbel
Copy link
Member

@dfalbel dfalbel commented May 15, 2023

This allows setting the dtype of a tensor using a string instead of the type object, eg:

torch_randn(10, 10, dtype ="half")

@dfalbel dfalbel added the lantern Use this label if your PR affects lantern so it's built in the CI label May 15, 2023
@dfalbel dfalbel merged commit 01ff8db into main May 15, 2023
10 checks passed
@dfalbel dfalbel deleted the dtype-string branch May 15, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lantern Use this label if your PR affects lantern so it's built in the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant