Skip to content

Commit 29d912c

Browse files
alanchiaotensorflower-gardener
authored andcommitted
Fix opensource testing of quantization_functional_test.py in TF 1.X .
PiperOrigin-RevId: 305166342
1 parent fcaa230 commit 29d912c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tensorflow_model_optimization/python/core/quantization/keras/quantize_functional_test.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ class QuantizeFullIntegerModelTest(tf.test.TestCase, parameterized.TestCase):
292292
layers.MaxPooling1D,
293293
layers.UpSampling1D,
294294
layers.UpSampling3D,
295+
# Not done since not registered since not per-axis yet.
296+
layers.Conv1D,
297+
layers.Conv2DTranspose,
295298
]
296299
])
297300
def testQuantizeSingleLayer_ProducesFullIntegerModel_TF2(
@@ -373,6 +376,16 @@ def testQuantizeSingleLayer_ProducesFullIntegerModel_TF2(
373376
layers.SpatialDropout1D,
374377
layers.SpatialDropout2D,
375378
layers.SpatialDropout3D,
379+
# Note done because not support in TF2, so we had disabled it.
380+
# Works fine in TF1 TOCO.
381+
layers.MaxPooling1D,
382+
layers.UpSampling3D,
383+
layers.RepeatVector,
384+
layers.ZeroPadding3D,
385+
layers.Conv1D,
386+
layers.Conv2DTranspose,
387+
layers.UpSampling1D,
388+
layers.UpSampling2D,
376389
]
377390
])
378391
def testQuantizeSingleLayer_ProducesFullIntegerModel_TF1(

0 commit comments

Comments
 (0)