-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Add Data2Vec for Vision in TF #17008
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
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
552ac3c
add utilities till TFData2VecVisionLayer.
sayakpaul 65e9d3b
chore: pass window_size to attention layer.
sayakpaul 59e244d
feat: add TFData2VecVisionRelativePositionBias.
sayakpaul 5b99dc5
feat: initial implementation ready for tf data2vec.
sayakpaul caac111
fix: relative position bias index, table to be fixed.
sayakpaul 26a54e3
chore: implementation added, tests remaining.
sayakpaul fa58b27
add: tests, other PR files.
sayakpaul 060b42a
fix: code quality.
sayakpaul 4b0eb6f
fix: import structure in init.
sayakpaul 5f6572c
chore: run make fix-copies.
sayakpaul 2048224
chore: address PR feedback (round I).
sayakpaul bae3243
chore: styling nit.
sayakpaul 4fc2e3e
fix: tests due to removal of to_2tuple().
sayakpaul ddd6b1c
chore: rebase with upstream main and move the test.
sayakpaul d24cd4e
Update src/transformers/models/auto/modeling_tf_auto.py
sayakpaul 7765ed0
Update src/transformers/models/auto/modeling_tf_auto.py
sayakpaul 77822c0
fix: layer call.
sayakpaul b662294
chore: remove from_pt=True and rerun test.
sayakpaul 1c1efc6
chore: remove cast and tf.divide.
sayakpaul c96ffc0
chore: minor edits to the test script.
sayakpaul 6b526e5
Update src/transformers/models/data2vec/modeling_tf_data2vec_vision.py
sayakpaul 497a54d
fix: expand() on TF tensors with broadcast_to().
sayakpaul d004de3
fix: test import.
sayakpaul 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
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.