-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Non-contiguous tensor iteration optimization (#659)
* optimized stridedIteration for non-contiguous tensors by explicitly looping over last two axes * fixed an introduced stridedIteration bug for iter_offset != 0 or iter_size != tensor size * made reshape use map_inline instead of apply2_inline * fixed a bug in reshape modification (was returning unintialized tensor when copying) * refactored the loop code, added asserts for better clarity * added a comment for the stridedIterationLoop
- Loading branch information
1 parent
b04691f
commit 35adfc1
Showing
2 changed files
with
178 additions
and
11 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
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