# tff.backends.native.transform_to_native_form

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Compiles a computation for execution in the TFF native runtime.

    tff.backends.native.transform_to_native_form(
        comp: https://www.tensorflow.org/federated/api_docs/python/tff/framework/ConcreteComputation,
        transform_math_to_tf: bool = False,
        grappler_config: Optional[tf.compat.v1.ConfigProto] = None
    ) -> https://www.tensorflow.org/federated/api_docs/python/tff/framework/ConcreteComputation

This function transforms the proto underlying `comp` by transforming it
to call-dominant form (see [`tff.framework.to_call_dominant`](https://www.tensorflow.org/federated/api_docs/python/tff/framework/to_call_dominant) for
definition).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `comp` | Instance of `computation_impl.ConcreteComputation` to compile. |
| `transform_math_to_tf` | Whether to additional transform math to TensorFlow graphs. Necessary if running on a execution state without ReferenceResolvingExecutors underneath FederatingExecutors. |
| `grappler_config` | Configuration for Grappler optimizations to perform on the TensorFlow computations. If `None`, Grappler will not be run and no optimizations wil be applied. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A new `computation_impl.ConcreteComputation` representing the compiled version of `comp`. ||

<br />