@@ -203,11 +203,11 @@ def run_base_tests(session):
203
203
session .run_always ("pytest" , test )
204
204
205
205
206
- def run_fx_core_tests (session ):
207
- print ("Running FX core tests" )
208
- session .chdir (os .path .join (TOP_DIR , "py/torch_tensorrt/fx/test " ))
206
+ def run_dynamo_backend_tests (session ):
207
+ print ("Running Dynamo core tests" )
208
+ session .chdir (os .path .join (TOP_DIR , "tests/ py/dynamo/ " ))
209
209
tests = [
210
- "core " ,
210
+ "backend " ,
211
211
]
212
212
for test in tests :
213
213
if USE_HOST_DEPS :
@@ -217,31 +217,23 @@ def run_fx_core_tests(session):
217
217
218
218
219
219
def run_fx_converter_tests (session ):
220
- print ("Running FX converter tests" )
221
- session .chdir (os .path .join (TOP_DIR , "py/torch_tensorrt/fx/test " ))
220
+ print ("Running Dynamo converter tests" )
221
+ session .chdir (os .path .join (TOP_DIR , "tests/ py/dynamo/ " ))
222
222
tests = [
223
- "converters " ,
223
+ "conversion " ,
224
224
]
225
- # Skipping this test as it fails inside NGC container with the following error.
226
- # Error Code 4: Internal Error (Could not find any implementation for node conv due to insufficient workspace. See verbose log for requested sizes.)
227
- skip_tests = "-k not conv3d"
228
225
for test in tests :
229
226
if USE_HOST_DEPS :
230
- session .run_always ("pytest" , test , skip_tests , env = {"PYTHONPATH" : PYT_PATH })
227
+ session .run_always ("pytest" , test , env = {"PYTHONPATH" : PYT_PATH })
231
228
else :
232
- session .run_always ("pytest" , test , skip_tests )
229
+ session .run_always ("pytest" , test )
233
230
234
231
235
- def run_fx_lower_tests (session ):
236
- print ("Running FX passes and trt_lower tests " )
237
- session .chdir (os .path .join (TOP_DIR , "py/torch_tensorrt/fx/test " ))
232
+ def run_dynamo_lower_tests (session ):
233
+ print ("Running Dynamo lowering passes " )
234
+ session .chdir (os .path .join (TOP_DIR , "tests/ py/dynamo/ " ))
238
235
tests = [
239
- "passes/test_multi_fuse_trt.py" ,
240
- # "passes/test_fuse_permute_linear_trt.py",
241
- "passes/test_remove_duplicate_output_args.py" ,
242
- "passes/test_fuse_permute_matmul_trt.py" ,
243
- # "passes/test_graph_opts.py"
244
- "trt_lower" ,
236
+ "lowering"
245
237
]
246
238
for test in tests :
247
239
if USE_HOST_DEPS :
@@ -250,31 +242,24 @@ def run_fx_lower_tests(session):
250
242
session .run_always ("pytest" , test )
251
243
252
244
253
- def run_fx_quant_tests (session ):
254
- print ("Running FX Quant tests" )
255
- session .chdir (os .path .join (TOP_DIR , "py/torch_tensorrt/fx/test " ))
245
+ def run_dynamo_model_tests (session ):
246
+ print ("Running Dynamo model tests" )
247
+ session .chdir (os .path .join (TOP_DIR , "tests/ py/dynamo/ " ))
256
248
tests = [
257
- "quant " ,
249
+ "models " ,
258
250
]
259
- # Skipping this test as it fails inside NGC container with the following error.
260
- # ImportError: cannot import name 'ObservationType' from 'torch.ao.quantization.backend_config.observation_type'
261
- skip_tests = "-k not conv_add_standalone_module"
262
251
for test in tests :
263
252
if USE_HOST_DEPS :
264
- session .run_always ("pytest" , test , skip_tests , env = {"PYTHONPATH" : PYT_PATH })
253
+ session .run_always ("pytest" , test , env = {"PYTHONPATH" : PYT_PATH })
265
254
else :
266
- session .run_always ("pytest" , test , skip_tests )
255
+ session .run_always ("pytest" , test )
267
256
268
257
269
- def run_fx_tracer_tests (session ):
270
- print ("Running FX Tracer tests" )
271
- session .chdir (os .path .join (TOP_DIR , "py/torch_tensorrt/fx/test" ))
272
- # skipping a test since it depends on torchdynamo
273
- # Enable this test once NGC moves to latest pytorch which has dynamo integrated.
258
+ def run_dynamo_partitioning_tests (session ):
259
+ print ("Running Dynamo Partitioning tests" )
260
+ session .chdir (os .path .join (TOP_DIR , "tests/py/dynamo/" ))
274
261
tests = [
275
- "tracer/test_acc_shape_prop.py" ,
276
- "tracer/test_acc_tracer.py" ,
277
- # "tracer/test_dispatch_tracer.py"
262
+ "partitioning"
278
263
]
279
264
for test in tests :
280
265
if USE_HOST_DEPS :
@@ -283,11 +268,11 @@ def run_fx_tracer_tests(session):
283
268
session .run_always ("pytest" , test )
284
269
285
270
286
- def run_fx_tools_tests (session ):
287
- print ("Running FX tools tests" )
288
- session .chdir (os .path .join (TOP_DIR , "py/torch_tensorrt/fx/test " ))
271
+ def run_dynamo_runtime_tests (session ):
272
+ print ("Running Dynamo Runtime tests" )
273
+ session .chdir (os .path .join (TOP_DIR , "tests/ py/dynamo/ " ))
289
274
tests = [
290
- "tools " ,
275
+ "runtime " ,
291
276
]
292
277
for test in tests :
293
278
if USE_HOST_DEPS :
0 commit comments