You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
# 2. Same tensor should be quantized only once. For example, if a tensor is the output of layer A and the input
# of the layer B, you should configure either {'quant_types': ['output'], 'op_names': ['a']} or
# {'quant_types': ['input'], 'op_names': ['b']} in the configure_list.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://github.com/microsoft/nni/blob/master/examples/model_compress/quantization/QAT_torch_quantizer.py#L53
Its comment talks about
The ops in mnist.naive https://github.com/microsoft/nni/blob/master/examples/model_compress/models/mnist/naive.py#L19
is conv1 -> relu1 -> max_pool -> conv2.
So according to hint2, the input of conv2 is the max output of relu1; as the input of conv2 is quantized to 8bit, the output of relu1 is duplicated.
Thx.
Beta Was this translation helpful? Give feedback.
All reactions