Python absl.flags.DEFINE_multi_string() Examples
The following are 2
code examples of absl.flags.DEFINE_multi_string().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
absl.flags
, or try the search function
.
Example #1
Source File: flags_helpxml_test.py From abseil-py with Apache License 2.0 | 5 votes |
def test_flag_help_in_xml_multi_string(self): flags.DEFINE_multi_string('to_delete', ['a.cc', 'b.h'], 'Files to delete', flag_values=self.fv) expected_output = ( '<flag>\n' ' <file>tool</file>\n' ' <name>to_delete</name>\n' ' <meaning>Files to delete;\n' ' repeat this option to specify a list of values</meaning>\n' ' <default>[\'a.cc\', \'b.h\']</default>\n' ' <current>[\'a.cc\', \'b.h\']</current>\n' ' <type>multi string</type>\n' '</flag>\n') self._check_flag_help_in_xml('to_delete', 'tool', expected_output)
Example #2
Source File: hyperparams_flags.py From models with Apache License 2.0 | 5 votes |
def define_gin_flags(): """Define common gin configurable flags.""" flags.DEFINE_multi_string('gin_file', None, 'List of paths to the config files.') flags.DEFINE_multi_string( 'gin_param', None, 'Newline separated list of Gin parameter bindings.')