Skip to content

Commit 161ef3d

Browse files
author
Anurag Dixit
committed
feat: Review comment incorporated
Signed-off-by: Anurag Dixit <anuragd@nvidia.com>
1 parent d4bb658 commit 161ef3d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

noxfile.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
import os
33

44
# Use system installed Python packages
5-
PYT_PATH='/opt/conda/lib/python3.8/site-packages'
5+
PYT_PATH='/opt/conda/lib/python3.8/site-packages' if not 'PYT_PATH' in os.environ else os.environ["PYT_PATH"]
66

77
# Root directory for torch_tensorrt. Set according to docker container by default
8-
TOP_DIR='/opt/pytorch/torch_tensorrt'
8+
TOP_DIR='/torchtrt' if not 'TOP_DIR' in os.environ else os.environ["TOP_DIR"]
99

1010
# Download the dataset
1111
@nox.session(python=["3"], reuse_venv=True)
1212
def download_datasets(session):
13+
print("Downloading dataset to path", os.path.join(TOP_DIR, 'examples/int8/training/vgg16'))
1314
session.chdir(os.path.join(TOP_DIR, 'examples/int8/training/vgg16'))
14-
session.run_always('wget', 'https://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz')
15-
session.run_always('tar', '-xvzf', 'cifar-10-binary.tar.gz')
15+
session.run_always('wget', 'https://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz', external=True)
16+
session.run_always('tar', '-xvzf', 'cifar-10-binary.tar.gz', external=True)
1617
session.run_always('mkdir', '-p',
17-
os.path.join(TOP_DIR, 'tests/accuracy/datasets/data'))
18+
os.path.join(TOP_DIR, 'tests/accuracy/datasets/data'),
19+
external=True)
1820
session.run_always('cp', '-rpf',
1921
os.path.join(TOP_DIR, 'examples/int8/training/vgg16/cifar-10-batches-bin'),
2022
os.path.join(TOP_DIR, 'tests/accuracy/datasets/data/cidar-10-batches-bin'),

0 commit comments

Comments
 (0)