Skip to content

Commit

Permalink
fix cos
Browse files Browse the repository at this point in the history
  • Loading branch information
leeexyz committed Mar 14, 2022
1 parent e955452 commit 360c590
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/python/frontend/tflite/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,10 @@ def test_all_unary_elemwise():
# ceil and cos come with TFLite 1.14.0.post1 fbs schema
if package_version.parse(tf.VERSION) >= package_version.parse("1.14.0"):
_test_forward_unary_elemwise(_test_ceil)
_test_forward_unary_elemwise(_test_cos, quant_dtype=np.int8)
if tf.__version__ < LooseVersion("2.6.1"):
_test_forward_unary_elemwise(_test_cos, quantized=False)
else:
_test_forward_unary_elemwise(_test_cos, quant_dtype=np.int8)
_test_forward_unary_elemwise(_test_round)
# This fails with TF and Tflite 1.15.2, this could not have been tested
# in CI or anywhere else. The failure mode is that we see a backtrace
Expand Down

0 comments on commit 360c590

Please sign in to comment.