# tf.mlir.experimental.tflite_to_tosa_bytecode

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/compiler/mlir/mlir.py#L181-L206) |

Converts TFLite flatbuffer to TOSA dialect in MLIR bytecode.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.mlir.experimental.tflite_to_tosa_bytecode`](https://www.tensorflow.org/api_docs/python/tf/mlir/experimental/tflite_to_tosa_bytecode)

<br />

    tf.mlir.experimental.tflite_to_tosa_bytecode(
        flatbuffer,
        bytecode,
        use_external_constant=False,
        ordered_input_arrays=None,
        ordered_output_arrays=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `flatbuffer` | Path to flatbuffer. |
| `bytecode` | Path to output bytecode. |
| `use_external_constant` | Whether to create `tfl.external_const` instead of `tfl.const`. |
| `ordered_input_arrays` | <br /> <br /> |
| `ordered_output_arrays` | If ordered_output_arrays is not empty, then the function will only return nodes in ordered_output_arrays in the same order |

<br />