-
Notifications
You must be signed in to change notification settings - Fork 240
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
[TorchFX] Graph tests extended with edge shapes #2918
[TorchFX] Graph tests extended with edge shapes #2918
Conversation
17887eb
to
2925666
Compare
2925666
to
6b4d29d
Compare
16c164c
to
44746bc
Compare
388fdca
to
ef526ac
Compare
.../fx/reference_graphs/extracted_graphs/ConvolutionWithAllConstantInputsModelconv2d_conv2d.dot
Outdated
Show resolved
Hide resolved
tests/torch/fx/test_models.py
Outdated
FX_DIR_NAME = Path("fx") | ||
FX_QUANTIZED_DIR_NAME = Path("fx") / "quantized" | ||
|
||
def check_fx_graphs(graph: NNCFGraph, path_to_dot: str, graph_dir: str): |
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.
Is not fx specific change, please add new arg extended
to existed function
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.
Then all references graphs will be placed back to directory "tests/torch/data/reference_graphs/fx" and other references like metatypes will be placed to "tests/torch/data/fx/reference_metatypes", are you ok with that?
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.
This behavior changes in this PR? Please write about all changes in PR description.
But i suggest firstly discuss about changes in structure of tests on meeting.
Why do you prefer tests/torch/data/fx
but not tests/torch/fx/data
?
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.
I have no preferences, please tell me the right structure and I'll do it
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.
If you have no preferences about it, lets keep structure as it.
And will discuss about structure on meeting.
tests/torch/fx/test_models.py
Outdated
FX_DIR_NAME = Path("fx") | ||
FX_QUANTIZED_DIR_NAME = Path("fx") / "quantized" | ||
|
||
def check_fx_graphs(graph: NNCFGraph, path_to_dot: str, graph_dir: str): |
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.
This behavior changes in this PR? Please write about all changes in PR description.
But i suggest firstly discuss about changes in structure of tests on meeting.
Why do you prefer tests/torch/data/fx
but not tests/torch/fx/data
?
ef526ac
to
abc8e95
Compare
@AlexanderDokuchaev, I keep the ref structure as is is, please merge if you have no comments |
Changes
Graph tests extended with edges shape
Reason for changes
To test edge shapes by graph tests
Related tickets
#2904