Skip to content

Commit

Permalink
Ignore the Deprecation warning produced about `native_serialization=F…
Browse files Browse the repository at this point in the history
…alse`.

PiperOrigin-RevId: 657221363
  • Loading branch information
belitskiy authored and jax authors committed Jul 29, 2024
1 parent fd23b87 commit 6127baa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/jax_to_ir_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def test_parse_shape_str_invalid(self):
jax_to_ir.parse_shape_str('foo[]')

@unittest.skipIf(tf is None, 'TensorFlow not installed.')
@jtu.ignore_warning(
category=UserWarning,
message='jax2tf.convert with native_serialization=False is deprecated.'
)
def test_jax_to_tf_axpy(self):
tf_proto, tf_text = jax_to_ir.jax_to_tf(axpy, [
('y', jax_to_ir.parse_shape_str('f32[128]')),
Expand Down

0 comments on commit 6127baa

Please sign in to comment.