961aa9573a7cb652c14841753c48ee7f2c4a0791,eval_gl_seg.py,,parse_args,#,14
Before Change
if args.ngpus == 0:
args.ctx = [mx.cpu(0)]
else:
args.ctx = [mx.gpu(i) for i in range(args.ngpus)]
print(args)
return args
After Change
dest="calc_flops",
action="store_true",
help="calculate FLOPs")
parser.add_argument(
"--calc-flops-only",
dest="calc_flops_only",
action="store_true",
help="calculate FLOPs without quality estimation")
parser.add_argument(
"--num-gpus",
type=int,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: osmr/imgclsmob
Commit Name: 961aa9573a7cb652c14841753c48ee7f2c4a0791
Time: 2019-03-19
Author: osemery@gmail.com
File Name: eval_gl_seg.py
Class Name:
Method Name: parse_args
Project Name: metalbubble/moments_models
Commit Name: 70e4855f5608c4481dfffd5f762e310d631d06c3
Time: 2020-10-09
Author: mmonfort@mit.edu
File Name: test_model_CAM.py
Class Name:
Method Name:
Project Name: dmlc/gluon-nlp
Commit Name: a08eaf2fa930d13967fd78a8ec53069394917ad3
Time: 2018-09-18
Author: chgwang@amazon.com
File Name: scripts/language_model/word_language_model.py
Class Name:
Method Name: