Commit d39be11
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 112e670 commit d39be11
2 files changed
Lines changed: 3 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 274 | | |
280 | 275 | | |
281 | 276 | | |
| |||
347 | 342 | | |
348 | 343 | | |
349 | 344 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | 345 | | |
356 | 346 | | |
357 | 347 | | |
| |||
673 | 663 | | |
674 | 664 | | |
675 | 665 | | |
676 | | - | |
677 | | - | |
| 666 | + | |
678 | 667 | | |
679 | 668 | | |
680 | 669 | | |
| |||
| 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 | | |
| |||
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
| |||
0 commit comments