fix quantization of EmbeddingLayerNorm (#5321)

This commit is contained in:
Yufeng Li 2020-09-29 01:00:47 -07:00 committed by GitHub
parent c00e13a291
commit 5de47affb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,5 @@ class EmbedLayerNormalizationQuant(QuantOperatorBase):
(quantized_input_names, zero_point_names, scale_names, nodes) = \
self.quantizer.quantize_inputs(node, [2, 3, 4])
nodes.append(node)
self.quantizer.new_nodes += nodes
super().quantize()
self.quantizer.new_nodes += nodes