|
|
|
@ -41,9 +41,7 @@ def set_config(args):
|
|
|
|
|
"save_checkpoint_path": "./",
|
|
|
|
|
"platform": args.platform,
|
|
|
|
|
"run_distribute": args.run_distribute,
|
|
|
|
|
"activation": "Softmax",
|
|
|
|
|
"export_format": "MINDIR",
|
|
|
|
|
"export_file": "mobilenetv2"
|
|
|
|
|
"activation": "Softmax"
|
|
|
|
|
})
|
|
|
|
|
config_gpu = ed({
|
|
|
|
|
"num_classes": 1000,
|
|
|
|
@ -65,9 +63,7 @@ def set_config(args):
|
|
|
|
|
"save_checkpoint_path": "./",
|
|
|
|
|
"platform": args.platform,
|
|
|
|
|
"run_distribute": args.run_distribute,
|
|
|
|
|
"activation": "Softmax",
|
|
|
|
|
"export_format": "MINDIR",
|
|
|
|
|
"export_file": "mobilenetv2"
|
|
|
|
|
"activation": "Softmax"
|
|
|
|
|
})
|
|
|
|
|
config_ascend = ed({
|
|
|
|
|
"num_classes": 1000,
|
|
|
|
@ -92,9 +88,7 @@ def set_config(args):
|
|
|
|
|
"rank_id": int(os.getenv('RANK_ID', '0')),
|
|
|
|
|
"rank_size": int(os.getenv('RANK_SIZE', '1')),
|
|
|
|
|
"run_distribute": int(os.getenv('RANK_SIZE', '1')) > 1.,
|
|
|
|
|
"activation": "Softmax",
|
|
|
|
|
"export_format": "MINDIR",
|
|
|
|
|
"export_file": "mobilenetv2"
|
|
|
|
|
"activation": "Softmax"
|
|
|
|
|
})
|
|
|
|
|
config = ed({"CPU": config_cpu,
|
|
|
|
|
"GPU": config_gpu,
|
|
|
|
|