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.
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
Implement smoothed Vision Transformer as defense against patch evasion attacks #2171
Implement smoothed Vision Transformer as defense against patch evasion attacks #2171
Changes from 53 commits
2678626
198349b
114b696
cda2e30
c2f38df
394e49c
7dd0512
548dafd
d461021
c83e823
a502a82
cdedd06
13ece2c
280df66
a69b3e5
3daab12
4bfbeb6
caa221e
9508d92
2de94b7
7220876
5360d89
2c5e4c5
784b7e9
6b3dcf6
3f3cea6
d1857b4
07842a7
44b2ea7
877fb38
bac6ff4
d3e1d71
fc0f181
afca1cc
239e3c0
2731bbb
7e49baa
9d8fb4f
681f087
cdc3938
4d01aee
d2b3e7e
288cc94
283564d
22abf10
addf590
8c28647
513d668
8349f96
062be5e
e4fbdba
579369d
da4ee1c
9432712
584218a
4da000a
fd69156
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check notice
Code scanning / CodeQL
Mismatch between signature and use of an overridden method
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.
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.
Current signature type-hinting is required by mypy due to https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
I.e. we can go to a more general argument type in the subclass, but we cannot start with a more general type-hint in the the base class and go a more specific type.