Skip to content

Commit 6fe0782

Browse files
committed
DLFW changes 25.01 onwards
1 parent 543bc9b commit 6fe0782

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

examples/int8/training/vgg16/requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ tensorboard>=1.14.0
22
protobuf==3.20.*
33
nvidia-pyindex
44
--extra-index-url https://pypi.nvidia.com
5-
pytorch-quantization
65
tqdm
76
nvidia-modelopt
87
--extra-index-url https://pypi.nvidia.com

noxfile.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Use system installed Python packages
88
PYT_PATH = (
9-
"/usr/local/lib/python3.10/dist-packages"
9+
"/usr/local/lib/python3.12/dist-packages"
1010
if not "PYT_PATH" in os.environ
1111
else os.environ["PYT_PATH"]
1212
)
@@ -34,7 +34,7 @@
3434
# Set epochs to train VGG model for accuracy tests
3535
EPOCHS = 25
3636

37-
SUPPORTED_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
37+
SUPPORTED_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.12"]
3838

3939
nox.options.sessions = [
4040
"l0_api_tests-" + "{}.{}".format(sys.version_info.major, sys.version_info.minor)
@@ -233,12 +233,15 @@ def run_dynamo_converter_tests(session):
233233
def run_dynamo_lower_tests(session):
234234
print("Running Dynamo lowering passes")
235235
session.chdir(os.path.join(TOP_DIR, "tests/py/dynamo/"))
236+
num_workers = "auto"
236237
tests = ["lowering"]
237238
for test in tests:
238239
if USE_HOST_DEPS:
239-
session.run_always("pytest", test, env={"PYTHONPATH": PYT_PATH})
240+
session.run_always(
241+
"pytest", test, "-n", num_workers, env={"PYTHONPATH": PYT_PATH}
242+
)
240243
else:
241-
session.run_always("pytest", test)
244+
session.run_always("pytest", test, "-n", num_workers)
242245

243246

244247
def run_dynamo_partitioning_tests(session):

tests/py/ts/ptq/test_ptq_dataloader_calibrator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import torch
55
import torch.nn as nn
66
import torch_tensorrt as torchtrt
7+
import torch_tensorrt.ts.ptq as PTQ
78
import torchvision
89
import torchvision.transforms as transforms
9-
import torch_tensorrt.ts.ptq as PTQ
1010
from torch.nn import functional as F
1111
from torch_tensorrt.ts.logging import *
1212

@@ -15,7 +15,7 @@ def find_repo_root(max_depth=10):
1515
dir_path = os.path.dirname(os.path.realpath(__file__))
1616
for i in range(max_depth):
1717
files = os.listdir(dir_path)
18-
if "WORKSPACE" in files:
18+
if "MODULE.bazel" in files:
1919
return dir_path
2020
else:
2121
dir_path = os.path.dirname(dir_path)

tests/py/ts/ptq/test_ptq_trt_calibrator.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import unittest
33

4+
import tensorrt as trt
45
import torch
56
import torch.nn as nn
67
import torch_tensorrt as torchtrt
@@ -9,14 +10,12 @@
910
from torch.nn import functional as F
1011
from torch_tensorrt.ts.logging import *
1112

12-
import tensorrt as trt
13-
1413

1514
def find_repo_root(max_depth=10):
1615
dir_path = os.path.dirname(os.path.realpath(__file__))
1716
for i in range(max_depth):
1817
files = os.listdir(dir_path)
19-
if "WORKSPACE" in files:
18+
if "MODULE.bazel" in files:
2019
return dir_path
2120
else:
2221
dir_path = os.path.dirname(dir_path)

0 commit comments

Comments
 (0)