You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* (Note: if multiple shapes with same input name are specified, TRT EP will consider them as multiple profiles.
1111
+
* Please refer to ParserProfileShapes() for more details)
1112
+
*
1113
+
*/
1114
+
bool status = true;
1115
+
if (status) {
1116
+
status = ParseProfileShapes(profile_min_shapes, profile_min_shapes_);
1117
+
if (!status) {
1118
+
profile_min_shapes_.clear();
1119
+
LOGS_DEFAULT(WARNING) << "[TensorRT EP] The format of provider option 'trt_profile_min_shapes' is wrong, please follow the format of 'input1:dim1xdimd2...,input2:dim1xdim2...,...'";
1120
+
}
1121
+
}
1122
+
1123
+
if (status) {
1124
+
status = ParseProfileShapes(profile_max_shapes, profile_max_shapes_);
1125
+
if (!status) {
1126
+
profile_max_shapes_.clear();
1127
+
LOGS_DEFAULT(WARNING) << "[TensorRT EP] The format of provider option 'trt_profile_max_shapes' is wrong, please follow the format of 'input1:dim1xdimd2...,input2:dim1xdim2...,...'";
1128
+
}
1129
+
}
1130
+
1131
+
if (status) {
1132
+
status = ParseProfileShapes(profile_opt_shapes, profile_opt_shapes_);
1133
+
if (!status) {
1134
+
profile_opt_shapes_.clear();
1135
+
LOGS_DEFAULT(WARNING) << "[TensorRT EP] The format of provider option 'trt_profile_opt_shapes' is wrong, please follow the format of 'input1:dim1xdimd2...,input2:dim1xdim2...,...'";
1136
+
}
1137
+
}
1138
+
1139
+
if (status) {
1140
+
status = ValidateProfileShapes(profile_min_shapes_, profile_max_shapes_, profile_opt_shapes_);
1141
+
if (!status) {
1142
+
LOGS_DEFAULT(WARNING) << "[TensorRT EP] Profile shapes validation failed. Make sure the provider options 'trt_profile_min_shapes', 'trt_profile_max_shapes' and 'trt_profile_opt_shapes' have same input name and number of profile.";
1143
+
LOGS_DEFAULT(WARNING) << "[TensorRT EP] TRT EP will implicitly create optimization profiles based on input tensor for you.";
0 commit comments