-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When checking that tensor data can be converted to a slice of `T`, we previously were checking the right things: is the length right? Is the alignment correct? Turns out there is a `std` function that does this for us: `slice::align_to`. Replacing the custom check with the `std` version should have no effect on the code other than clarity.
- Loading branch information
Showing
1 changed file
with
11 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters