Skip to content
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

Add encoding propagation as an experimental feature #2945

Merged
merged 4 commits into from May 24, 2024

Conversation

quic-kyunggeu
Copy link
Contributor

Below is how encoding unification works in plain english

Given a module, for each input of the module, find the "effective producer" of the input.
An "effective producer" of a quantized tensor is the layer which holds the output encoding associated with the quantized tensor

Case 1. If the "effective producer" exists:
Set effective_producer.output_quantizers[i] := module.output_quantizers[0] where i is the index of the output quantizer associated with the input

Case 2. If "effective producer" doesn't exist:
This means the input has been never quantized before. Find the consumer of the input and set
consumer.input_quantizers[i] := module.output_quantizers[0] where i is the index of the input quantizer associated with the input

Signed-off-by: Kyunggeun Lee <quic_kyunggeu@quicinc.com>
Signed-off-by: Kyunggeun Lee <quic_kyunggeu@quicinc.com>
Signed-off-by: Kyunggeun Lee <quic_kyunggeu@quicinc.com>
Signed-off-by: Kyunggeun Lee <quic_kyunggeu@quicinc.com>
@quic-kyunggeu quic-kyunggeu merged commit 19f8e2d into quic:develop May 24, 2024
3 checks passed
@quic-kyunggeu quic-kyunggeu deleted the encoding_propagation branch May 24, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants