-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add contiguous
and try_contiguous
methods
#690
Conversation
let b2: Tensor<_, TestDtype, _> = a.permute::<Rank2<3, 2>, _>().contiguous(); | ||
assert_eq!(b2.strides, [2, 1]); |
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.
Nice unit test 👍
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.
Looks really good, will merge once we remove the extra bounds
Co-authored-by: Corey Lowman <coreylowman@users.noreply.github.com>
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.
Thanks for the contribution!
Resolves #679,
Used the methodology specified in #679, if I missed something please do let me know.