-
Notifications
You must be signed in to change notification settings - Fork 338
Fix memory continuity judgment when stride is negative #885
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
Changes from 1 commit
f0dafb3
90dfc6c
0d8b965
e6a4f10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -707,7 +707,7 @@ fn gen_mat_vec_mul() { | |
S2: Data<Elem = A>, | ||
{ | ||
let ((m, _), k) = (lhs.dim(), rhs.dim()); | ||
reference_mat_mul(lhs, &rhs.to_owned().into_shape((k, 1)).unwrap()) | ||
reference_mat_mul(lhs, &rhs.as_standard_layout().into_shape((k, 1)).unwrap()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, this change makes sense - it is a sign of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added relevant instructions in the comment of to_owned. Maybe we should clarify the role of the return value of to_owned and improve it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to_owned's docs are fine - it's |
||
.into_shape(m) | ||
.unwrap() | ||
} | ||
|
@@ -772,7 +772,7 @@ fn vec_mat_mul() { | |
S2: Data<Elem = A>, | ||
{ | ||
let (m, (_, n)) = (lhs.dim(), rhs.dim()); | ||
reference_mat_mul(&lhs.to_owned().into_shape((1, m)).unwrap(), rhs) | ||
reference_mat_mul(&lhs.as_standard_layout().into_shape((1, m)).unwrap(), rhs) | ||
.into_shape(n) | ||
.unwrap() | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.