-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove indices and offsets copying from prefetch (#2186)
Summary: Pull Request resolved: #2186 Since `linearize_cache_indices` did not support the case where `indices` and `offsets` have different types, we casted both `indices` and `offsets` to the same type, that is `int64_t`. In some cases, this caused the memory requirment to surge causing the peak memory requirement to increase. This diff modifies the `linearize_cache_indices` op to support when `indices` and `offsets` have different types. Reviewed By: ehsanardestani Differential Revision: D51723551 fbshipit-source-id: f40c9cc6e8e4435a8cc01702edd85cf843835c07
- Loading branch information
1 parent
c58679a
commit 0fc0d4e
Showing
3 changed files
with
24 additions
and
24 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
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