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

Function str2bool

NLP/MRQA2019-D-NET/multi_task_learning/scripts/args.py:24–27  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

22
23
24def str2bool(v):
25 # because argparse does not support to parse "true, False" as python
26 # boolean directly
27 return v.lower() in ("true", "t", "1")
28
29
30class ArgumentGroup(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected