tf.compat.v1.flags.DEFINE_alias

Defines an alias flag for an existing one.

Args
name str, the flag name.
original_name str, the original flag name.
flag_values 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.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/compat/v1/flags/DEFINE_alias