tf.compat.v1.flags.override_value  |  TensorFlow v2.16.1 (original) (raw)

tf.compat.v1.flags.override_value

Stay organized with collections Save and categorize content based on your preferences.

Overrides the value of the provided flag.

tf.compat.v1.flags.override_value(
    flag_holder: _flagvalues.FlagHolder[_T], value: _T
) -> None

This value takes precedent over the default value and, when called after flag parsing, any value provided at the command line.

Args
flag_holder FlagHolder, the flag to modify.
value The new value.
Raises
IllegalFlagValueError The value did not pass the flag parser or validators.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.

Last updated 2024-04-26 UTC.