SIGN IN SIGN UP
tensorflow / models UNCLAIMED

Models and examples built with TensorFlow

0 0 0 Python

Improve error message when certain flags are not specified.

In nlp/train.py and vision/beta/train.py, certain flags are marked as required. Additionally, in certain functions, error messages are improved if a necessary flag is not specified, which is a fallback in case a file calling define_flags() does not mark the necessary flags are required. Previously if any of these flags were not specified, it would crash with a cryptic error message, making it hard to tell what went wrong.

In a subsequent change, I will mark flags as required in more files which call define_flags().

PiperOrigin-RevId: 381066985
R
Reed Wanderman-Milne committed
0a9026e402fc2e85105a89cfe6357e9c04d8b877
Parent: 9f9d07e
Committed by A. Unique TensorFlower <gardener@tensorflow.org> on 6/23/2021, 5:47:08 PM