a96d5c587fe58aeece67e53011b0e8740fe6c244,dl/scripts/inference.py,,parse_args,#,11
Before Change
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--model-dir", type=str, default=None)
parser.add_argument("--config", type=str, default=None)
parser.add_argument("--seed", type=int, default=42)
parser.add_argument(
"--resume",
default=None,
type=str,
metavar="PATH",
help="path to latest checkpoint"
)
parser.add_argument(
"-j",
"--workers",
default=None,
type=int,
metavar="N",
help="number of data loading workers"
)
parser.add_argument(
"-b",
"--batch-size",
default=None,
type=int,
metavar="N",
help="mini-batch size"
)
boolean_flag(parser, "verbose", default=False)
parser.add_argument("--out-prefix", type=str, default=None)
args, unknown_args = parser.parse_known_args()
return args, unknown_args
After Change
def parse_args():
parser = argparse.ArgumentParser()
build_args(parser)
args, unknown_args = parser.parse_known_args()
return args, unknown_args
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: Scitator/catalyst
Commit Name: a96d5c587fe58aeece67e53011b0e8740fe6c244
Time: 2019-01-21
Author: poletaev.va@gmail.com
File Name: dl/scripts/inference.py
Class Name:
Method Name: parse_args
Project Name: Scitator/catalyst
Commit Name: a96d5c587fe58aeece67e53011b0e8740fe6c244
Time: 2019-01-21
Author: poletaev.va@gmail.com
File Name: dl/scripts/inference.py
Class Name:
Method Name: parse_args
Project Name: Scitator/catalyst
Commit Name: a96d5c587fe58aeece67e53011b0e8740fe6c244
Time: 2019-01-21
Author: poletaev.va@gmail.com
File Name: dl/scripts/train.py
Class Name:
Method Name: parse_args
Project Name: Scitator/catalyst
Commit Name: 5e9538fd489a381f59b080cb6dea4ebc2f4e2a35
Time: 2019-01-23
Author: scitator@gmail.com
File Name: catalyst/rl/offpolicy/scripts/run_samplers.py
Class Name:
Method Name: parse_args