Skip to content

Commit 574b6bd

Browse files
committed
chore: remove debug logging in CI tests, add missing dtype_support test
1 parent c57aa04 commit 574b6bd

File tree

7 files changed

+2
-14
lines changed

7 files changed

+2
-14
lines changed

.github/workflows/build-test-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ jobs:
175175
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_models.xml --ir dynamo models/test_models.py
176176
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_models_dynamic.xml --ir dynamo models/test_dyn_models.py
177177
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/engine_cache.xml --ir dynamo models/test_engine_cache.py
178+
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dtype_support.xml --ir dynamo models/test_dtype_support.py
178179
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/model_refit.xml --ir dynamo models/test_model_refit.py
179180
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/modelopt_models.xml --ir dynamo models/test_modelopt_models.py
180181
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/weight_stripped_engine.xml --ir dynamo models/test_weight_stripped_engine.py

tests/py/dynamo/backend/test_backend_compiler.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
from copy import deepcopy
33

44
import torch
5+
import torch_tensorrt
56
from torch.testing._internal.common_utils import TestCase, run_tests
67
from torch_tensorrt.dynamo.partitioning import fast_partition
78

8-
import torch_tensorrt
9-
109
from ..testing_utilities import DECIMALS_OF_AGREEMENT, lower_graph_testing
1110

1211

@@ -51,7 +50,6 @@ def forward(self, x, y):
5150
pass_through_build_failures=True,
5251
torch_executed_ops={"torch.ops.aten.add.Tensor"},
5352
use_python_runtime=False,
54-
debug=True,
5553
)
5654
optimized_model_results = optimized_model(*inputs).detach().cpu()
5755
torch_model_results = fx_graph(*inputs).detach().cpu()
@@ -132,7 +130,6 @@ def forward(self, x, y):
132130
pass_through_build_failures=True,
133131
torch_executed_ops={"torch.ops.aten.add.Tensor"},
134132
use_python_runtime=False,
135-
debug=True,
136133
)
137134
optimized_model_results = optimized_model(*inputs).detach().cpu()
138135
torch_model_results = model(*inputs).detach().cpu()
@@ -177,7 +174,6 @@ def forward(self, x, y):
177174
optimization_level=4,
178175
version_compatible=True,
179176
max_aux_streams=5,
180-
debug=True,
181177
)
182178
optimized_model_results = optimized_model(*inputs).detach().cpu()
183179
torch_model_results = fx_graph(*inputs).detach().cpu()
@@ -225,7 +221,6 @@ def forward(self, x, y):
225221
min_block_size=1,
226222
pass_through_build_failures=True,
227223
truncate_double=True,
228-
debug=True,
229224
)
230225
optimized_model_results = optimized_model(*inputs).detach().cpu()
231226
torch_model_results = fx_graph(*inputs).detach().cpu()
@@ -298,7 +293,6 @@ def forward(self, x, y):
298293
min_block_size=1,
299294
pass_through_build_failures=True,
300295
truncate_double=False,
301-
debug=True,
302296
torch_executed_ops={"torch.ops.aten.add.Tensor"},
303297
)
304298
optimized_model_results = optimized_model(*inputs).detach().cpu()

tests/py/dynamo/conversion/harness.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ def run_test(
415415
compilation_settings = CompilationSettings(
416416
enabled_precisions={dtype._from(precision)},
417417
truncate_double=True,
418-
debug=True,
419418
immutable_weights=immutable_weights,
420419
)
421420

@@ -507,7 +506,6 @@ def run_test_compare_tensor_attributes_only(
507506
compilation_settings = CompilationSettings(
508507
enabled_precisions={dtype._from(precision)},
509508
truncate_double=True,
510-
debug=True,
511509
immutable_weights=immutable_weights,
512510
)
513511

tests/py/dynamo/models/test_dtype_support.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ def forward(self, x):
297297
ir="torch_compile",
298298
inputs=inputs,
299299
enabled_precisions={torch.bfloat16},
300-
debug=True,
301300
min_block_size=1,
302301
device=device,
303302
cache_built_engines=False,

tests/py/dynamo/models/test_model_refit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,6 @@ def forward(self, x):
815815
exp_program,
816816
tuple(inputs),
817817
enabled_precisions={torch.float},
818-
debug=True,
819818
min_block_size=1,
820819
immutable_weights=False,
821820
)

tests/py/dynamo/models/test_modelopt_models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def calibrate_loop(model):
5858
inputs=[input_tensor],
5959
enabled_precisions={torch.float8_e4m3fn},
6060
min_block_size=1,
61-
debug=True,
6261
cache_built_engines=False,
6362
reuse_cached_engines=False,
6463
)
@@ -109,7 +108,6 @@ def calibrate_loop(model):
109108
inputs=[input_tensor],
110109
enabled_precisions={torch.int8},
111110
min_block_size=1,
112-
debug=True,
113111
cache_built_engines=False,
114112
reuse_cached_engines=False,
115113
truncate_double=True,

tests/py/dynamo/runtime/test_002_cudagraphs_py.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def forward(self, x):
6161
min_block_size=1,
6262
pass_through_build_failures=True,
6363
use_python_runtime=True,
64-
debug=True,
6564
)
6665

6766
result_samples = []

0 commit comments

Comments
 (0)