[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.lite.experimental.authoring.compatible\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/python/authoring/authoring.py#L265-L303) |\n\nWraps [`tf.function`](../../../../tf/function) into a callable function with TFLite compatibility checking.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.lite.experimental.authoring.compatible`](https://www.tensorflow.org/api_docs/python/tf/lite/experimental/authoring/compatible)\n\n\u003cbr /\u003e\n\n tf.lite.experimental.authoring.compatible(\n target=None, converter_target_spec=None, **kwargs\n )\n\n### Used in the notebooks\n\n| Used in the guide |\n|----------------------------------------------------------------------------|\n| - [TFLite Authoring Tool](https://www.tensorflow.org/lite/guide/authoring) |\n\n#### Example:\n\n @tf.lite.experimental.authoring.compatible\n @tf.function(input_signature=[\n tf.TensorSpec(shape=[None], dtype=tf.float32)\n ])\n def f(x):\n return tf.cosh(x)\n\n result = f(tf.constant([0.0]))\n # COMPATIBILITY WARNING: op 'tf.Cosh' require(s) \"Select TF Ops\" for model\n # conversion for TensorFlow Lite.\n # Op: tf.Cosh\n # - tensorflow/python/framework/op_def_library.py:748\n # - tensorflow/python/ops/gen_math_ops.py:2458\n # - \u003cstdin\u003e:6\n\n| **Warning:** Experimental interface, subject to change.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------------|-----------------------------------------------------------|\n| `target` | A [`tf.function`](../../../../tf/function) to decorate. |\n| `converter_target_spec` | target_spec of TFLite converter parameter. |\n| `**kwargs` | The keyword arguments of the decorator class _Compatible. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A callable object of `tf.lite.experimental.authoring._Compatible`. ||\n\n\u003cbr /\u003e"]]