File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
py/torch_tensorrt/dynamo/partitioning Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ jobs:
135135 pushd .
136136 cd tests/py/dynamo
137137 ../../../packaging/vc_env_helper.bat python -m pytest -ra -n 8 --junitxml=${RUNNER_TEST_RESULTS_DIR}/l0_dynamo_core_runtime_tests_results.xml runtime/test_000_*
138- ../../../packaging/vc_env_helper.bat python -m pytest -ra -n 8 --junitxml=${RUNNER_TEST_RESULTS_DIR}/l0_dynamo_core_partitioning_tests_results.xml partitioning/
138+ ../../../packaging/vc_env_helper.bat python -m pytest -ra -n 8 --junitxml=${RUNNER_TEST_RESULTS_DIR}/l0_dynamo_core_partitioning_tests_results.xml partitioning/test_000_*
139139 ../../../packaging/vc_env_helper.bat python -m pytest -ra -n 8 --junitxml=${RUNNER_TEST_RESULTS_DIR}/l0_dynamo_core_lowering_tests_results.xml lowering/
140140 popd
141141
@@ -219,6 +219,7 @@ jobs:
219219 pushd .
220220 cd tests/py/dynamo
221221 ../../../packaging/vc_env_helper.bat python -m pytest -ra -n 8 --junitxml=${RUNNER_TEST_RESULTS_DIR}/l1_dynamo_core_tests_results.xml runtime/test_001_*
222+ ../../../packaging/vc_env_helper.bat python -m pytest -ra -n 8 --junitxml=${RUNNER_TEST_RESULTS_DIR}/l1_dynamo_core_partitioning_tests_results.xml partitioning/test_001_*
222223 popd
223224
224225 L1-dynamo-compile-tests :
Original file line number Diff line number Diff line change 5959
6060logger = logging .getLogger (__name__ )
6161
62- MAX_NUM_OF_ENGINES = 40
62+ MAX_NUM_OF_ENGINES = 50
6363ENGINE_COMPILATION_MEMORY_USAGE_MULTIPLIER = 4
6464
6565
@@ -127,6 +127,9 @@ def partition_graph(self) -> torch.fx.GraphModule:
127127 subgraphs , subgraph_size_budget = self .calculate_size_budget ()
128128 )
129129
130+ if len (subgraphs ) == 1 :
131+ return self .module
132+
130133 # Set the number of TRT engines to be generated
131134 self .num_trt_accelerated_subgraphs = len ([s for s in subgraphs if s .is_acc ])
132135
@@ -315,7 +318,7 @@ def break_subgraph_by_size(
315318 )
316319 new_subgraphs = self .step_and_validate (new_subgraphs , step_size )
317320 size_0 , size_1 = self .size_of_subgraphs (new_subgraphs )
318- if size_0 > size_to_break :
321+ if size_0 > size_to_break or size_0 > size_1 :
319322 break
320323
321324 return new_subgraphs , size_0 , size_1
You can’t perform that action at this time.
0 commit comments