tf.compat.v1.flags.declare_key_flag
Stay organized with collections
Save and categorize content based on your preferences.
Declares one flag as key to the current module.
tf.compat.v1.flags.declare_key_flag(
flag_name, flag_values=_flagvalues.FLAGS
)
Key flags are flags that are deemed really important for a module.
They are important when listing help messages; e.g., if the
--helpshort command-line flag is used, then only the key flags of the
main module are listed (instead of all flags, as in the case of
--helpfull).
Sample usage:
flags.declare_key_flag('flag_1')
Args |
flag_name
|
str, the name of an already declared flag. (Redeclaring flags as
key, including flags implicitly key because they were declared in this
module, is a no-op.)
|
flag_values
|
FlagValues, the FlagValues instance in which the flag will be
declared as a key flag. This should almost never need to be overridden.
|
Raises |
ValueError
|
Raised if flag_name not defined as a Python flag.
|
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 2021-02-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-18 UTC."],[],[]]