-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Add TensorFlow implementation of EfficientFormer #22620
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
amyeroberts
merged 32 commits into
huggingface:main
from
D-Roberts:add_tf_efficientformer
May 31, 2023
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1ae220c
Add tf code for efficientformer
D-Roberts 9bc3b65
Fix return dict bug - return last hidden state after last stage
D-Roberts 3d0e0d8
Fix corresponding return dict bug
D-Roberts fc7c593
Override test tol
D-Roberts 73fa8a1
Change default values of training to False
D-Roberts 957089e
Set training to default False X3
D-Roberts d01293a
Rm axis from ln
D-Roberts 5fc79df
Set init in dense projection
D-Roberts 3a300e3
Rm debug stuff
D-Roberts 2a08237
Make style; all tests pass.
D-Roberts 6b00027
Modify year to 2023
D-Roberts b02b574
Fix attention biases codes
D-Roberts 5e266f6
Update the shape list logic
D-Roberts 6f95124
Add a batch norm eps config
D-Roberts 3f13aa1
Remove extract comments in test files
D-Roberts 427d02e
Add conditional attn and hidden states return for serving output
D-Roberts 2827456
Change channel dim checking logic
D-Roberts 046a2eb
Add exception for withteacher model in training mode
D-Roberts c6e56dd
Revert layer count for now
D-Roberts 919eaea
Add layer count for conditional layer naming
D-Roberts 683afc9
Transpose for conv happens only in main layer
D-Roberts ef03fe5
Make tests smaller
D-Roberts 289f0e8
Make style
D-Roberts 7b6aaf8
Update doc
D-Roberts e7232d9
Rm from_pt
D-Roberts 812218a
Change to actual expect image class label
D-Roberts 25e0b77
Remove stray print in tests
D-Roberts f145693
Update image processor test
D-Roberts 56436b9
Remove the old serving output logic
D-Roberts c49d0f8
Make style
D-Roberts 2319363
Make style
D-Roberts a2b9995
Complete test
D-Roberts 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
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.