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

fix arange default dtype #833

Merged
merged 3 commits into from
Aug 16, 2022
Merged

fix arange default dtype #833

merged 3 commits into from
Aug 16, 2022

Conversation

ngimel
Copy link
Contributor

@ngimel ngimel commented Aug 16, 2022

It's int64 in eager.
Also fix the tests to check the dtype of results (most of the test changes are formatting, + a new argument, exact_dtype, passed through). We really should inherit from pytorch's TestCase and use self.assertEqual to not reinvent it (although assertEqual doesn't have cosine similarity, so pros and cons).

@ngimel ngimel merged commit b003624 into pytorch:main Aug 16, 2022
@ngimel ngimel deleted the arange_int64 branch August 19, 2022 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants