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

Function DEFINE_float

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

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

(flag_name, default_value, docstring)

Source from the content-addressed store, hash-verified

127
128
129def DEFINE_float(flag_name, default_value, docstring):
130 """Defines a flag of type 'float'.
131
132 Args:
133 flag_name: The name of the flag as a string.
134 default_value: The default value the flag should take as a float.
135 docstring: A helpful message explaining the use of the flag.
136 """
137 _define_helper(flag_name, default_value, docstring, float)
138
139
140def DEFINE_custom(flag_name, default_value, docstring, **args):

Callers

nothing calls this directly

Calls 1

_define_helperFunction · 0.70

Tested by

no test coverage detected