suppose I want a command like
python test.py --layer 3 --sizes 100,100,100
where layer == len(sizes)
and sizes is a comma separated list
please help me with this command
suppose I want a command like
python test.py --layer 3 --sizes 100,100,100
where layer == len(sizes)
and sizes is a comma separated list
please help me with this command
Use argument parser from python : https://docs.python.org/3/library/argparse.html
You have examples in the doc.
Hint for your sizes: You can store it as a string and split it with ',' as a separator If sizes_string is "100,100,100", you do:
sizes = [int(s) for s in sizes_string.split(',')]