e0b692c96565074d4cb148e6011b2007d0a55348,examples/model_compress/model_speedup.py,,,#,129
Before Change
args.masks_file = "mask_vgg16_cifar10.pth"
apoz_speedup(args.masks_file, args.model_checkpoint)
else:
raise ValueError("unsupported example_name: {}".format(args.example_name))
After Change
if args.example_name != "all":
if args.masks_file is not None:
config[args.example_name]["masks_file"] = args.masks_file
if not os.path.exists(config[args.example_name]["masks_file"]):
msg = "{} does not exist! You should specify masks_file correctly, " \
"or use default one which is generated by model_prune_torch.py"
raise RuntimeError(msg.format(config[args.example_name]["masks_file"]))
model_inference(config[args.example_name])
else:
model_inference(config["fpgm"])
model_inference(config["slim"])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: Microsoft/nni
Commit Name: e0b692c96565074d4cb148e6011b2007d0a55348
Time: 2020-03-23
Author: Quanlu.Zhang@microsoft.com
File Name: examples/model_compress/model_speedup.py
Class Name:
Method Name:
Project Name: xinntao/BasicSR
Commit Name: 29ab5e1965503be3ffe87462e973edf1d457af6e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/extract_subimgs_single.py
Class Name:
Method Name: main
Project Name: dmlc/dgl
Commit Name: 9df8cd324207d3924439c3d912229811e34687f0
Time: 2019-09-10
Author: mufeili1996@gmail.com
File Name: python/dgl/model_zoo/chem/pretrain.py
Class Name:
Method Name: load_pretrained