Skip to content

Commit

Permalink
[jax2tf] Remove backwards compatibility shims (jax2tf.jax_export)
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 jax_export.py shim for
backwards compatibility. Now we remove this shim.

Replace previous

  from jax.experimental.jax2tf import jax_export

with

  from jax.experimental.export import export

PiperOrigin-RevId: 589409387
  • Loading branch information
gnecula authored and jax authors committed Dec 9, 2023
1 parent 709564a commit e50ef1b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 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",
"jax_export.py", # TODO(necula): remove stub
"shape_poly.py", # TODO(necula): remove stub
],
srcs_version = "PY3",
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,7 +21,5 @@
PolyShape as PolyShape
)
from jax.experimental.jax2tf.call_tf import call_tf as call_tf
# TODO(necula): remove stub. Needed by SAX
from jax.experimental.jax2tf import jax_export
# Needed by maths.qec.
from jax.experimental.jax2tf import shape_poly
22 changes: 0 additions & 22 deletions jax/experimental/jax2tf/jax_export.py

This file was deleted.

0 comments on commit e50ef1b

Please sign in to comment.