• Reed Wanderman-Milne's avatar
    Improve error message when certain flags are not specified. · 0a9026e4
    Reed Wanderman-Milne authored
    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
    0a9026e4
flags.py 4.07 KB