-
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
[Experimental] TorchFX PTQ backend #2764
[Experimental] TorchFX PTQ backend #2764
Conversation
fbd0fd5
to
cea1693
Compare
3fb62df
to
c818a93
Compare
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.
It is curious that the developer does not quantize any operations in the torch.fx.GraphModule
, but at the same time does not report errors that the torch backend does not support Torch FX.
Taking account that torch.fx is a part of torch and requires specific processing, I would like to make the following proposal:
- I agree to introduce TORCH_FX = "TorchFX" backend to simplify the factory code, but to simplify this PR you can skip adding support in nncf.quantize(). If you are going to do it you must warn the user that experimental code will be used.
- Make torch_fx as part of torch module. I mean nncf/experimental/torch_fx/ -> nncf/experimental/torch/fx/
- I suggest to use Torch GAs for TorchFX because requirements are the same and the backend is a part of Torch. In the future we may separate them, but only if we have problems with test completion times.
703dfde
to
4d9ef0d
Compare
4d9ef0d
to
2d5a02b
Compare
e48d097
to
71b49f7
Compare
444cb64
to
20a4eda
Compare
c166088
to
1eabd17
Compare
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.
LGTM
b6bd3fc
to
3064753
Compare
3064753
to
826fed9
Compare
nncf/quantization/algorithms/fast_bias_correction/torch_fx_backend.py
Outdated
Show resolved
Hide resolved
99b4344
to
3b4a992
Compare
Changes
Reason for changes
To begin the Torch FX backend development
Related tickets
141640
#2766
Tests