|
1 | 1 | #!/bin/bash |
2 | | -# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. |
| 2 | +# Copyright (c) 2019-2024, NVIDIA CORPORATION. All rights reserved. |
3 | 3 | # |
4 | 4 | # Redistribution and use in source and binary forms, with or without |
5 | 5 | # modification, are permitted provided that the following conditions |
@@ -127,10 +127,13 @@ else |
127 | 127 | fi |
128 | 128 |
|
129 | 129 | # Prepare the config file for dynamic batching tests |
130 | | -CONFIG_FILE="models/plan_zero_1_float32/config.pbtxt" |
131 | | -sed -i "s/^max_batch_size:.*/max_batch_size: 8/" $CONFIG_FILE && \ |
132 | | -sed -i "s/^version_policy:.*/version_policy: { specific { versions: [1] }}/" $CONFIG_FILE && \ |
133 | | - echo "dynamic_batching { preferred_batch_size: [ 2, 6 ], max_queue_delay_microseconds: 10000000 }" >> $CONFIG_FILE |
| 130 | +for dtype in int32 int64; do |
| 131 | + CONFIG_FILE="models/plan_zero_1_float32_${dtype}/config.pbtxt" |
| 132 | + sed -i "s/^max_batch_size:.*/max_batch_size: 8/" "$CONFIG_FILE" |
| 133 | + sed -i "s/^version_policy:.*/version_policy: { specific { versions: [1] }}/" "$CONFIG_FILE" |
| 134 | + echo "dynamic_batching { preferred_batch_size: [ 2, 6 ], max_queue_delay_microseconds: 10000000 }" >>"$CONFIG_FILE" |
| 135 | +done |
| 136 | + |
134 | 137 | for i in \ |
135 | 138 | test_dynamic_different_shape_values \ |
136 | 139 | test_dynamic_identical_shape_values; do |
@@ -202,9 +205,11 @@ for i in \ |
202 | 205 | done |
203 | 206 |
|
204 | 207 | # Prepare the config file for dynamic sequence batching tests |
205 | | -CONFIG_FILE="models/plan_dyna_sequence_float32/config.pbtxt" |
206 | | -sed -i "s/max_candidate_sequences:.*/max_candidate_sequences:4/" $CONFIG_FILE && \ |
207 | | -sed -i "s/max_queue_delay_microseconds:.*/max_queue_delay_microseconds:5000000/" $CONFIG_FILE |
| 208 | +for dtype in int32 int64; do |
| 209 | + CONFIG_FILE="models/plan_dyna_sequence_float32_${dtype}/config.pbtxt" |
| 210 | + sed -i "s/max_candidate_sequences:.*/max_candidate_sequences:4/" "$CONFIG_FILE" |
| 211 | + sed -i "s/max_queue_delay_microseconds:.*/max_queue_delay_microseconds:5000000/" "$CONFIG_FILE" |
| 212 | +done |
208 | 213 |
|
209 | 214 | export NO_BATCHING=0 |
210 | 215 |
|
|
0 commit comments