-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathresnet_trtrtx.json
More file actions
109 lines (109 loc) · 3.03 KB
/
Copy pathresnet_trtrtx.json
File metadata and controls
109 lines (109 loc) · 3.03 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"input_model": {
"type": "HfModel",
"model_path": "microsoft/resnet-50",
"task": "image-classification",
"io_config": {
"input_names": [
"pixel_values"
],
"input_shapes": [
[
1,
3,
224,
224
]
],
"output_names": [
"logits"
]
}
},
"systems": {
"local_system": {
"type": "LocalSystem",
"accelerators": [
{
"device": "gpu",
"execution_providers": [
"NvTensorRTRTXExecutionProvider"
]
}
]
}
},
"data_configs": [
{
"name": "data_config",
"type": "HuggingfaceContainer",
"user_script": "imagenet.py",
"load_dataset_config": {
"data_name": "timm/mini-imagenet",
"split": "train",
"streaming": true,
"trust_remote_code": true
},
"pre_process_data_config": {
"type": "dataset_pre_process",
"size": 256,
"cache_key": "imagenet"
},
"post_process_data_config": {
"type": "dataset_post_process"
}
}
],
"evaluators": {
"common_evaluator": {
"metrics": [
{
"name": "accuracy",
"type": "accuracy",
"data_config": "data_config",
"sub_types": [
{
"name": "accuracy_score",
"priority": 1,
"metric_config": {
"task": "multiclass",
"num_classes": 1001
}
}
]
},
{
"name": "latency",
"type": "latency",
"data_config": "data_config",
"sub_types": [
{
"name": "avg"
}
]
}
]
}
},
"passes": {
"onnx_conversion": {
"type": "OnnxConversion",
"target_opset": 13,
"save_as_external_data": true
},
"onnx_float_to_float16": {
"type": "OnnxFloatToFloat16",
"save_as_external_data": true
},
"session_params_tuning": {
"type": "OrtSessionParamsTuning",
"io_bind": false,
"data_config": "data_config"
}
},
"target": "local_system",
"evaluator": "common_evaluator",
"cache_dir": "cache",
"output_dir": "model/resnet_trtrtx",
"evaluate_input_model": false
}