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

tf.compat.v1.flags.DEFINE_alias

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

Defines an alias flag for an existing one.

tf.compat.v1.flags.DEFINE_alias(
    name: Text,
    original_name: Text,
    flag_values: tf.compat.v1.flags.FlagValues = _flagvalues.FLAGS,
    module_name: Optional[Text] = None
) -> _flagvalues.FlagHolder[Any]
Args
name str, the flag name.
original_name str, the original flag name.
flag_values :class:FlagValues, the FlagValues instance with which the flag will be registered. This should almost never need to be overridden.
module_name A string, the name of the module that defines this flag.
Returns
a handle to defined flag.
Raises
flags.FlagError UnrecognizedFlagError: if the referenced flag doesn't exist. DuplicateFlagError: if the alias name has been used by some existing 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 2024-04-26 UTC.