# tf_agents.utils.common.set_default_tf_function_parameters

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/common.py#L101-L126) |

Generates a decorator that sets default parameters for [`tf.function`](https://www.tensorflow.org/api_docs/python/tf/function).

    tf_agents.utils.common.set_default_tf_function_parameters(
        *args, **kwargs
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `*args` | default arguments for the [`tf.function`](https://www.tensorflow.org/api_docs/python/tf/function). |
| `**kwargs` | default keyword arguments for the [`tf.function`](https://www.tensorflow.org/api_docs/python/tf/function). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Function decorator with preconfigured defaults for [`tf.function`](https://www.tensorflow.org/api_docs/python/tf/function). ||

<br />