Skip to content

Commit

Permalink
[jax2tf] Remove backwards compatibility shims (jax2tf.shape_poly)
Browse files Browse the repository at this point in the history
A while ago we moved the native exporting code out of jax2tf, to
jax.experimental.export, but we left behind shape_poly.py shim for
backwards compatibility. Now we remove this shim.

Replace previous

  from jax.experimental.jax2tf import shape_poly

with

  from jax.experimental.export import shape_poly

PiperOrigin-RevId: 589850402
  • Loading branch information
gnecula authored and jax authors committed Dec 11, 2023
1 parent 9d0a991 commit b5f852f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 31 deletions.
1 change: 0 additions & 1 deletion jax/experimental/jax2tf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ py_library(
"call_tf.py",
"impl_no_xla.py",
"jax2tf.py",
"shape_poly.py", # TODO(necula): remove stub
],
srcs_version = "PY3",
# TODO: b/255503696: enable pytype
Expand Down
2 changes: 0 additions & 2 deletions jax/experimental/jax2tf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@
PolyShape as PolyShape
)
from jax.experimental.jax2tf.call_tf import call_tf as call_tf
# Needed by maths.qec.
from jax.experimental.jax2tf import shape_poly
27 changes: 0 additions & 27 deletions jax/experimental/jax2tf/shape_poly.py

This file was deleted.

2 changes: 1 addition & 1 deletion jax/experimental/jax2tf/tests/models_test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

import tensorflow as tf

from jax.experimental.jax2tf.shape_poly import InconclusiveDimensionOperation
from jax.experimental.export.shape_poly import InconclusiveDimensionOperation
from jax.experimental.jax2tf.tests.model_harness import ALL_HARNESSES
from jax.experimental.jax2tf.tests.converters import ALL_CONVERTERS

Expand Down

0 comments on commit b5f852f

Please sign in to comment.