Skip to content

Commit 60a2228

Browse files
daverimtensorflower-gardener
authored andcommitted
Add default quantize config for layers.Concatenate
PiperOrigin-RevId: 406274393
1 parent 1606dc9 commit 60a2228

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tensorflow_model_optimization/python/core/quantization/keras/default_8bit/default_8bit_quantize_registry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class Default8BitQuantizeRegistry(
9292

9393
# _QuantizeInfo(layers.Conv3D, ['kernel'], ['activation']),
9494
# _QuantizeInfo(layers.Conv3DTranspose, ['kernel'], ['activation']),
95+
_QuantizeInfo(layers.Concatenate, [], [], True),
9596
_no_quantize(layers.Cropping1D),
9697
_no_quantize(layers.Cropping2D),
9798
_no_quantize(layers.Cropping3D),

tensorflow_model_optimization/python/core/quantization/keras/experimental/default_n_bit/default_n_bit_quantize_registry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class DefaultNBitQuantizeRegistry(
101101

102102
# _QuantizeInfo(layers.Conv3D, ['kernel'], ['activation']),
103103
# _QuantizeInfo(layers.Conv3DTranspose, ['kernel'], ['activation']),
104+
_QuantizeInfo(layers.Concatenate, [], [], True),
104105
_no_quantize(layers.Cropping1D),
105106
_no_quantize(layers.Cropping2D),
106107
_no_quantize(layers.Cropping3D),

0 commit comments

Comments
 (0)