# tf.compat.v1.flags.set_default

<br />

Changes the default value of the provided flag object.

#### View aliases


**Compat aliases for migration**

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

\`tf.compat.v1.app.flags.set_default\`

<br />

    tf.compat.v1.flags.set_default(
        flag_holder, value
    )

The flag's current value is also updated if the flag is currently using
the default value, i.e. not specified in the command line, and not set
by FLAGS.name = value.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `flag_holder` | FlagHolder, the flag to modify. |
| `value` | The new default value. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `IllegalFlagValueError` | Raised when value is not valid. |

<br />