-
Notifications
You must be signed in to change notification settings - Fork 239
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
QAT example for TF backend #3164
QAT example for TF backend #3164
Conversation
a621227
to
80c597a
Compare
f1f5493
to
c1faf40
Compare
@daniil-lyakhov , please also review it |
NNCF/nightly/test_examples : 642 |
examples/quantization_aware_training/tensorflow/mobilenet_v2/main.py
Outdated
Show resolved
Hide resolved
examples/quantization_aware_training/tensorflow/mobilenet_v2/main.py
Outdated
Show resolved
Hide resolved
examples/quantization_aware_training/tensorflow/mobilenet_v2/main.py
Outdated
Show resolved
Hide resolved
""" | ||
Implementation of the nncf.strip() function for the TF backend | ||
""" | ||
wrapped_layers = collect_wrapped_layers(model) |
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.
@alexsu52 I just want to highlight. I will move the nncf.strip(
) call inside the convert_model()
function, as we discussed. This means that the method will be called for every TensorFlow (TF) model, whether quantized or not. The collect_wrapped_layers()
function will be called (for any TF model) to check if there are any of our layers. It traverses all layers.
examples/post_training_quantization/tensorflow/mobilenet_v2/main.py
Outdated
Show resolved
Hide resolved
examples/quantization_aware_training/tensorflow/mobilenet_v2/main.py
Outdated
Show resolved
Hide resolved
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
Changes
Add simple QAT example for TF backend
Reason for changes
Ref: 158980
Related tickets
Ref: 158980
Tests