Skip to content

Commit 74d7b25

Browse files
committed
DLFW changes
1 parent 4e5b0f6 commit 74d7b25

File tree

2 files changed

+29
-44
lines changed

2 files changed

+29
-44
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tensorboard>=1.14.0
22
protobuf==3.20.*
33
nvidia-pyindex
4-
--extra-index-url https://pypi.ngc.nvidia.com
5-
pytorch-quantization>=2.1.2
4+
--extra-index-url https://pypi.nvidia.com
5+
pytorch-quantization
66
tqdm

noxfile.py

Lines changed: 27 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ def run_base_tests(session):
203203
session.run_always("pytest", test)
204204

205205

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/"))
209209
tests = [
210-
"core",
210+
"backend",
211211
]
212212
for test in tests:
213213
if USE_HOST_DEPS:
@@ -217,31 +217,23 @@ def run_fx_core_tests(session):
217217

218218

219219
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/"))
222222
tests = [
223-
"converters",
223+
"conversion",
224224
]
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"
228225
for test in tests:
229226
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})
231228
else:
232-
session.run_always("pytest", test, skip_tests)
229+
session.run_always("pytest", test)
233230

234231

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/"))
238235
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"
245237
]
246238
for test in tests:
247239
if USE_HOST_DEPS:
@@ -250,31 +242,24 @@ def run_fx_lower_tests(session):
250242
session.run_always("pytest", test)
251243

252244

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/"))
256248
tests = [
257-
"quant",
249+
"models",
258250
]
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"
262251
for test in tests:
263252
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})
265254
else:
266-
session.run_always("pytest", test, skip_tests)
255+
session.run_always("pytest", test)
267256

268257

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/"))
274261
tests = [
275-
"tracer/test_acc_shape_prop.py",
276-
"tracer/test_acc_tracer.py",
277-
# "tracer/test_dispatch_tracer.py"
262+
"partitioning"
278263
]
279264
for test in tests:
280265
if USE_HOST_DEPS:
@@ -283,11 +268,11 @@ def run_fx_tracer_tests(session):
283268
session.run_always("pytest", test)
284269

285270

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/"))
289274
tests = [
290-
"tools",
275+
"runtime",
291276
]
292277
for test in tests:
293278
if USE_HOST_DEPS:

0 commit comments

Comments
 (0)