-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
FakeQuantize decomposition #3741
FakeQuantize decomposition #3741
Conversation
8398de5
to
d275a15
Compare
@dmitry-gorokhov @GlebKazantaev take a look please |
d275a15
to
e3b9519
Compare
@eshoguli could you please review |
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
e3b9519
to
b914368
Compare
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/functional/inference_engine/transformations/fq_decomposition_test.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/functional/inference_engine/transformations/fq_decomposition_test.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/functional/inference_engine/transformations/fq_decomposition_test.cpp
Outdated
Show resolved
Hide resolved
df1787a
to
d008f82
Compare
Discussed with @GlebKazantaev and decided to place FakeQuantizeDecomposition in transformation library because it possible to reuse for other plugins. |
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/functional/inference_engine/transformations/fq_decomposition_test.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/functional/inference_engine/transformations/fq_decomposition_test.cpp
Outdated
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Show resolved
Hide resolved
7051a23
to
15b3708
Compare
@dmitry-gorokhov could you review again please? |
...rence-engine/src/transformations/include/transformations/op_conversions/fq_decomposition.hpp
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
inference-engine/src/transformations/src/transformations/op_conversions/fq_decomposition.cpp
Outdated
Show resolved
Hide resolved
15b3708
to
6d6e7ef
Compare
inference-engine/src/mkldnn_plugin/nodes/mkldnn_quantize_node.cpp
Outdated
Show resolved
Hide resolved
@GlebKazantaev do you have any comments? |
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.
Transformation part looks good.
6d6e7ef
to
cf1b41b
Compare
cf1b41b
to
d4df3d7
Compare
Issue: 42853
At this moment CPU plug-in supports following FakeQuantize node:
Motivation of this PR is supporting cases:
via decomposition FakeQuantize into a set of eltwise operations
Unsupported FakeQuantize can also be obtained after transformation or LPT transformation.
So FakeQuantizeDecomposition called after LPT transformation, but before ConvertOpSet1ToLegacy
At this moment used only for CPU plug-in