-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Filter gradients of IndexedSlices in tf grad sim backend, fixes #828 #829
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
f15d7a8
Filter gradients of IndexedSlices in tf grad sim backend, fixes #828
mauicv 1fd9c38
Add functionality to convert sparse gradients to nd.array
mauicv 3dbc6c6
Add warnings if non-trainable layers present in model
mauicv ab16515
Fix linting and typing errors
mauicv 87d4ca7
Add check for non-trainable layers in gradsim
mauicv 6cad12c
Add better docstrings
mauicv 12937d8
Add better docstrings for tests
mauicv 219a6a0
Fix minor linting error
mauicv 764bc56
Add check for tensor attribute
mauicv 4a89f48
Check for and log list of non trainable layers on GradSim __init__
mauicv e77f67f
Add error for non-trainable models in GradSim method
mauicv efde102
Rewrite get_non_trainable method docstrings
mauicv 22dc19a
Remove typos from doctstrings
mauicv 557af3b
Minor warning rephrase and update tests
mauicv b9c8f61
Fix minor flake8 error
mauicv 6015d50
Improve error message for numpy conversion error
mauicv a3270be
Update tensorflow _grad_to_numpy type hints
mauicv 188e1d3
Revert minor changes
mauicv 2af3367
Minor spelling fix to test docstring
mauicv a6e437c
Update test comment to make behavour clearer
mauicv ab23c05
Fix typeo in test docstring
mauicv e95aaf1
Add comment to test to explain build method call
mauicv 6704c64
Add note on batch norm layer in GradSim integration tests
mauicv 876ea61
Fix minor linting errors
mauicv bf7fad3
Add backticks to modules names in docstrings
mauicv 0e0c919
Make get_not_trainable private
mauicv 09a1674
Add questions to the FAQ docs page detailing performance soln and war…
mauicv f443185
Minor fixes
mauicv 8a99be5
Fix linting error
mauicv f69227b
Add minor changes
mauicv 42cf904
Fix Requested PR changes
mauicv 57d04b4
Update non-trainable params warning
mauicv f72d197
Minor fix
mauicv 308b51f
Remove backticks
mauicv 4bd1f20
Remove commented out lines from test
mauicv 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 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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that torch tensors have a
grad
attribute by default set toNone
so we don't have to check it exist first!