Consider FakeQuantWithMinMaxArgs to be a train-time quant op in the TFLite converter

This commit is contained in:
Adam Hillier 2021-01-26 18:23:46 +00:00 committed by GitHub
parent 2833b3d945
commit 9db9d08855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,6 +411,7 @@ class QuantizationMode(object):
"""Checks if the graph contains any training-time quantization ops."""
training_quant_ops = frozenset({
"FakeQuantWithMinMaxVars", "FakeQuantWithMinMaxVarsPerChannel",
"FakeQuantWithMinMaxArgs", "FakeQuantWithMinMaxArgsPerChannel",
"QuantizeAndDequantizeV2", "QuantizeAndDequantizeV3"
})