Spec-Zone.ru › TensorFlow

tf.compat.v1.flags.set_default

Changes the default value of the provided flag object.

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

The flag's current value is also updated if the flag is currently using the default value, i.e. not specified in the command line, and not set by FLAGS.name = value.

Args
flag_holder FlagHolder, the flag to modify.
value The new default value.
Raises
IllegalFlagValueError Raised when value is not valid.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/compat/v1/flags/set_default

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API