-
Notifications
You must be signed in to change notification settings - Fork 270
[Torch FX] Fix "None" Tensor Shape In NNCFGraph Edges #3747
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
Open
anzr299
wants to merge
11
commits into
openvinotoolkit:develop
Choose a base branch
from
anzr299:an/fx/fix_tensor_shape
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
31b7a35
init
anzr299 6ddd0a5
add more ops
anzr299 198fa5c
more fixes
anzr299 98ac1d8
fix
anzr299 54c2c10
fix
anzr299 d8018e6
add test
anzr299 e5fb9de
Merge branch 'openvinotoolkit:develop' into an/fx/fix_tensor_shape
anzr299 f927088
remove arange
anzr299 4e157af
fix metatype ref
anzr299 2da6f5a
remove extra ops
anzr299 66c9fbb
Merge branch 'openvinotoolkit:develop' into an/fx/fix_tensor_shape
anzr299 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| strict digraph { | ||
| "0 embedding_weight" [id=0, type="get_attr"]; | ||
| "1 embeddingbag_weight" [id=1, type="get_attr"]; | ||
| "2 x" [id=2, type=input]; | ||
| "3 embedding" [id=3, type=embedding]; | ||
| "4 arange" [id=4, type=arange]; | ||
| "5 reshape" [id=5, type=reshape]; | ||
| "6 embedding_bag" [id=6, type="embedding_bag"]; | ||
| "7 getitem" [id=7, type="__getitem__"]; | ||
| "8 getitem_1" [id=8, type="__getitem__"]; | ||
| "9 getitem_2" [id=9, type="__getitem__"]; | ||
| "10 getitem_3" [id=10, type="__getitem__"]; | ||
| "11 add" [id=11, type=add]; | ||
| "12 output" [id=12, type=output]; | ||
| "0 embedding_weight" -> "3 embedding" [style=solid, label="(10, 10)"]; | ||
| "1 embeddingbag_weight" -> "6 embedding_bag" [style=solid, label="(10, 10)"]; | ||
| "2 x" -> "3 embedding" [style=solid, label="(1, 1)"]; | ||
| "2 x" -> "5 reshape" [style=solid, label="(1, 1)"]; | ||
| "3 embedding" -> "11 add" [style=solid, label="(1, 1, 10)"]; | ||
| "4 arange" -> "6 embedding_bag" [style=solid, label="(1,)"]; | ||
| "5 reshape" -> "6 embedding_bag" [style=solid, label="(1,)"]; | ||
| "6 embedding_bag" -> "7 getitem" [style=solid, label="(1, 10)"]; | ||
| "6 embedding_bag" -> "8 getitem_1" [style=solid, label="(1,)"]; | ||
| "6 embedding_bag" -> "9 getitem_2" [style=solid, label="(1,)"]; | ||
| "6 embedding_bag" -> "10 getitem_3" [style=solid, label="(1,)"]; | ||
| "7 getitem" -> "11 add" [style=solid, label="(1, 10)"]; | ||
| "11 add" -> "12 output" [style=solid, label="(1, 1, 10)"]; | ||
| } |
15 changes: 15 additions & 0 deletions
15
tests/torch2/data/fx/reference_metatypes/embedding_bag_model.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "embedding_weight": "PTConstNoopMetatype", | ||
| "embeddingbag_weight": "PTConstNoopMetatype", | ||
| "x": "PTInputNoopMetatype", | ||
| "embedding": "PTAtenEmbeddingMetatype", | ||
| "arange": "UnknownMetatype", | ||
| "reshape": "PTReshapeMetatype", | ||
| "embedding_bag": "PTAtenEmbeddingBagMetatype", | ||
| "getitem": "PTGatherMetatype", | ||
| "getitem_1": "PTGatherMetatype", | ||
| "getitem_2": "PTGatherMetatype", | ||
| "getitem_3": "PTGatherMetatype", | ||
| "add": "PTAddMetatype", | ||
| "output": "PTOutputNoopMetatype" | ||
| } |
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.