# tf.compat.v1.flags.adopt_module_key_flags

<br />

Declares that all flags key to a module are key to the current module.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.app.flags.adopt_module_key_flags`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/flags/adopt_module_key_flags)

<br />

    tf.compat.v1.flags.adopt_module_key_flags(
        module, flag_values=_flagvalues.FLAGS
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `module` | module, the module object from which all key flags will be declared as key flags to the current module. |
| `flag_values` | FlagValues, the FlagValues instance in which the flags will be declared as key flags. This should almost never need to be overridden. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `Error` | Raised when given an argument that is a module name (a string), instead of a module object. |

<br />