W3cubDocs

/TensorFlow

tf.compat.v1.flags.override_value

Overrides the value of the provided flag.

This value takes precedent over the default value and, when called after flag parsing, any value provided at the command line.

Args
flag_holder FlagHolder, the flag to modify.
value The new value.
Raises
IllegalFlagValueError The value did not pass the flag parser or validators.

© 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/override_value