-
Notifications
You must be signed in to change notification settings - Fork 66
/
resnet50_config.json
73 lines (73 loc) · 2.07 KB
/
resnet50_config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"input_model": {
"type": "PyTorchModel",
"config": {
"model_loader": "load_pytorch_origin_model",
"model_script": "user_script.py",
"io_config": {
"input_names": [ "input_image" ],
"input_shapes": [ [ 1, 3, 224, 224 ] ],
"output_names": [ "output" ]
}
}
},
"systems": {
"local_system": {
"type": "LocalSystem",
"config": {
"accelerators": ["gpu"]
}
}
},
"evaluators": {
"common_evaluator": {
"metrics": [
{
"name": "latency",
"type": "latency",
"sub_types": [
{"name": "avg", "priority": 1},
{"name": "max"},
{"name": "min"}
],
"user_config": {
"user_script": "user_script.py",
"dataloader_func": "create_dataloader",
"batch_size": 1
}
}
]
}
},
"passes": {
"torch_to_onnx": {
"type": "OnnxConversion",
"config": {
"target_opset": 17
}
},
"float16_conversion": {
"type": "OnnxFloatToFloat16"
},
"perf_tuning": {
"type": "OrtPerfTuning",
"config": {
"user_script": "user_script.py",
"dataloader_func": "create_dataloader",
"device": "gpu",
"batch_size": 1,
"execution_mode_list": [ "ORT_SEQUENTIAL" ],
"providers_list": [ "DmlExecutionProvider" ]
}
}
},
"engine": {
"log_severity_level": 0,
"evaluator": "common_evaluator",
"evaluate_input_model": false,
"host": "local_system",
"target": "local_system",
"clean_cache": true,
"cache_dir": "cache"
}
}