-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Sparse half embeddings on cuda #19695
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
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
71bdfe8
setup sparse half tensors
nairbv 68a201a
add test for sparse half cuda embedding
nairbv 4de0623
Merge branch 'master' into sparse_half_tensors
nairbv 227c4e9
fix flake8 error
nairbv 1201f1d
fix flaky low-precision test and clarify precision issue
nairbv 3900816
simplify tests
nairbv 79787aa
add suggested test for constructing/moving sparse half embeddings
nairbv bf286f7
cleanup sparse half embedding tests per review
nairbv 6cfebce
fix typo in test
nairbv f7a10b1
update embedding inputs to consistently use one dimension
nairbv 29a72ea
add tests and support for torch.sparse.HalfTensor constructor
nairbv 2d1be26
add half ops needed for to_sparse/to_dense
nairbv fc45204
Merge remote-tracking branch 'origin/master' into HEAD
nairbv 5dc8cc2
add_ for cpu half needed by TestUncoalescedSparse
nairbv 22babf1
Reverting to_dense and add support on half/cpu
nairbv b0e7f08
remove more of unneeded half-cpu code
nairbv ab20267
remove no-longer needed half-cpu change
nairbv fdb90a2
fix a stale comment
nairbv 1974e1c
remove unnecessary blas guard
nairbv ceebfe6
cleanup names from code-review
nairbv 79d1906
rename a function to be clearer
nairbv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,6 +149,7 @@ | |
| [[ | ||
| name: _th_nonzero | ||
| cname: nonzero | ||
| cpu_half: True | ||
| cpu_bool: True | ||
| cuda_bool: True | ||
| variants: | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.