tf.compat.v1.flags.disclaim_key_flags
Stay organized with collections
Save and categorize content based on your preferences.
Declares that the current module will not define any more key flags.
tf.compat.v1.flags.disclaim_key_flags() -> None
Normally, the module that calls the DEFINE_xxx functions claims the
flag to be its key flag. This is undesirable for modules that
define additional DEFINE_yyy functions with its own flag parsers and
serializers, since that module will accidentally claim flags defined
by DEFINE_yyy as its key flags. After calling this function, the
module disclaims flag definitions thereafter, so the key flags will
be correctly attributed to the caller of DEFINE_yyy.
After calling this function, the module will not be able to define
any more flags. This function will affect all FlagValues objects.
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.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.flags.disclaim_key_flags\n\n\u003cbr /\u003e\n\nDeclares that the current module will not define any more key flags. \n\n tf.compat.v1.flags.disclaim_key_flags() -\u003e None\n\nNormally, the module that calls the DEFINE_xxx functions claims the\nflag to be its key flag. This is undesirable for modules that\ndefine additional DEFINE_yyy functions with its own flag parsers and\nserializers, since that module will accidentally claim flags defined\nby DEFINE_yyy as its key flags. After calling this function, the\nmodule disclaims flag definitions thereafter, so the key flags will\nbe correctly attributed to the caller of DEFINE_yyy.\n\nAfter calling this function, the module will not be able to define\nany more flags. This function will affect all FlagValues objects."]]