Open ericyuan00000 opened 1 month ago
If the default is True
, you could use "--no_pin_memory", dest="pin_memory", action="store_false"
?
Also, some additional alternatives including some more modern (py >= 3.9 specific) in https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
Describe the bug
When running
the flag
pin_memory
remainsTrue
.The code
in
arg_parser.py
does not seem to be the correct syntax.