-
-
Notifications
You must be signed in to change notification settings - Fork 667
feat: improve how device switch is handled between the metric device and the input tensors device #3043
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
Merged
Merged
feat: improve how device switch is handled between the metric device and the input tensors device #3043
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
750a6ca
refactor: remove outdated code and issue a warning if two tensors are…
MarcBresson 78a4c78
feat: prioritize computation on GPU devices over CPUs
MarcBresson 85eebd5
fix: use a temp var that will be moved with y_pred
MarcBresson 9125e60
test: add metric and y_pred with different devices test
MarcBresson a4c2f7c
feat: move self._kernel directly and issue a warning only when not al…
MarcBresson 1908fff
feat: adapt test to new behaviour
MarcBresson 2547e70
feat: keep the accumulation on the same device as self._kernel
MarcBresson 3269955
feat: move accumulation along side self._kernel
MarcBresson 04af090
feat: allow different channel number
MarcBresson 7922ec9
style: format using the run_code_style script
MarcBresson b0625e4
style: add line brak to conform to E501
MarcBresson 6817316
fix: use torch.empty to avoid type incompatibility between None and T…
MarcBresson d2aa8c8
feat: only operate on self._kernel, keep the accumulation on user's s…
MarcBresson c6bf8f8
test: add variable channel test and factorize the code
MarcBresson f6f82fe
Merge branch 'master' into refactor-_update
MarcBresson 99c3469
refactor: remove redundant line between init and reset
MarcBresson eba6f68
refactor: elif comparison and replace RuntimeWarning by UserWarning
MarcBresson 91ae235
refactor: set _kernel in __init__ and manually format to pass E501
MarcBresson 7284b01
test: adapt test to new UserWarning
MarcBresson d96255c
test: remove skips
MarcBresson 2807f28
refactor: use None instead of torch.empty
MarcBresson 526234c
style: reorder imports
MarcBresson b6f1a21
refactor: rename channel to nb_channel
MarcBresson 0a38aa5
Fixed failing test_distrib_accumulator_device
vfdev-5 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
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
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.