MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / DEFINE_string

Function DEFINE_string

ST_DM/KDD2021-MSTPAC/code/ST-PAC/utils/flags.py:75–83  ·  view source on GitHub ↗

Defines a flag of type 'string'. Args: flag_name: The name of the flag as a string. default_value: The default value the flag should take as a string. docstring: A helpful message explaining the use of the flag.

(flag_name, default_value, docstring)

Source from the content-addressed store, hash-verified

73
74
75def DEFINE_string(flag_name, default_value, docstring):
76 """Defines a flag of type 'string'.
77
78 Args:
79 flag_name: The name of the flag as a string.
80 default_value: The default value the flag should take as a string.
81 docstring: A helpful message explaining the use of the flag.
82 """
83 _define_helper(flag_name, default_value, docstring, str)
84
85
86def DEFINE_integer(flag_name, default_value, docstring):

Callers

nothing calls this directly

Calls 1

_define_helperFunction · 0.70

Tested by

no test coverage detected