PyTorch-Encoding
PyTorch-Encoding copied to clipboard
args.batch_size or batch-size
In PyTorch-Encoding/experiments/segmentation/option.py 113line:
I want to ask if args.batch_size is wrong.Because the front defines batch-size
Thank you very much.
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--hello-world')
print(parser.parse_args(["--hello-world", "hoge"]))
# -> Namespace(hello_world='hoge')
A hyphen -
used in name of arguments is automatically converted into underscore _
by argparse
.
Yes, that's normal.