[go: nahoru, domu]

Skip to content

Commit

Permalink
Deprecate experimental_from_jax in favor of jax2tf + `from_saved_…
Browse files Browse the repository at this point in the history
…model`.

The recommended way to convert JAX models includes using PAX/SAX/T5X/Orbax
Export. For a JAX-native model, `jax2tf` can be used directly. Once a TF
SavedModel is procured using the aforementioned tools, then
`lite.TFLiteConverter.from_saved_model` can be used without the need to specify
any additional flags.

PiperOrigin-RevId: 548228454
  • Loading branch information
arfaian authored and tensorflower-gardener committed Jul 14, 2023
1 parent 387f5f4 commit 40f0167
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tensorflow/lite/python/lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,11 @@ def from_keras_model(cls, model):
return TFLiteKerasModelConverterV2(model)

@classmethod
@_deprecation.deprecated(
None,
"Use `jax2tf.convert` and (`lite.TFLiteConverter.from_saved_model`"
" or `lite.TFLiteConverter.from_concrete_functions`) instead.",
)
def experimental_from_jax(cls, serving_funcs, inputs):
# Experimental API, subject to changes.
# TODO(b/197690428): Currently only support single function.
Expand Down

0 comments on commit 40f0167

Please sign in to comment.