ea65d92a41ba1e8171cd0814dc9c50373f8e2c4f,eval_ch.py,,main,#,197
Before Change
net = prepare_model(
model_name=args.model,
use_pretrained=args.use_pretrained,
pretrained_model_file_path=args.resume.strip(),
use_gpus=use_gpus,
net_extra_kwargs=ds_metainfo.net_extra_kwargs,
num_classes=args.num_classes,
After Change
if args.all:
args.use_pretrained = True
for model_name, model_metainfo in (_model_sha1.items() if version_info[0] >= 3 else _model_sha1.iteritems()):
error, checksum, repo_release_tag = model_metainfo
args.model = model_name
logging.info("==============")
logging.info("Checking model: {}".format(model_name))
acc_value = test_model(args=args)
if acc_value is not None:
exp_value = int(error) * 1e-4
if abs(acc_value - exp_value) > 2e-4:
logging.info("----> Wrong value detected (expected value: {})!".format(exp_value))
else:
test_model(args=args)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: osmr/imgclsmob
Commit Name: ea65d92a41ba1e8171cd0814dc9c50373f8e2c4f
Time: 2020-01-16
Author: osemery@gmail.com
File Name: eval_ch.py
Class Name:
Method Name: main
Project Name: NervanaSystems/nlp-architect
Commit Name: 9c7c69fe2769fc536db267694055e1514d6e53b9
Time: 2018-10-31
Author: jonathan.mamou@intel.com
File Name: solutions/set_expansion/expand_server.py
Class Name: MyTCPHandler
Method Name: handle
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: b53e9baee8a3ff165048424b9be8fd020a78270e
Time: 2020-09-03
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: UpdateInterruptibleVmStatus