Commit d017ed7
committed
fix(test): enable TRT-RTX refit and engine cache tests
Now that #4181 removed the RTX-specific batch norm workaround that
bypassed constant folding, the refit bug (#3752) is resolved — eps
constants are no longer created as separate CONSTANT layers on RTX.
Remove the RTX skip decorators from:
- test_dynamo_compile_with_refittable_weight_stripped_engine
- test_dynamo_compile_with_custom_engine_cache
- test_dynamo_compile_change_input_shape
Keep the RTX skip on test_caching_small_model, which fails a timing
assertion (cached compilation is slower than uncached on RTX). Update
the skip message to reflect the actual reason.
Fix import ordering in test_weight_stripped_engine.py: tensorrt must
be imported after torch_tensorrt so the tensorrt_rtx module alias is
resolved correctly.
Fixes #37521 parent 2233edb commit d017ed7
2 files changed
Lines changed: 3 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 271 | | |
277 | 272 | | |
278 | 273 | | |
| |||
342 | 337 | | |
343 | 338 | | |
344 | 339 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | 340 | | |
351 | 341 | | |
352 | 342 | | |
| |||
659 | 649 | | |
660 | 650 | | |
661 | 651 | | |
662 | | - | |
663 | | - | |
| 652 | + | |
664 | 653 | | |
665 | 654 | | |
666 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | 276 | | |
281 | 277 | | |
282 | 278 | | |
| |||
0 commit comments