Skip to content

Commit 06baa81

Browse files
committed
chore: Adding a nox session to download all the models for you
Running `nox --session download_test_models-3` will download all the models used in testing for you Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 11bcb98 commit 06baa81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,3 +322,8 @@ def l2_multi_gpu_tests(session):
322322
def l2_multi_gpu_tests_host_deps(session):
323323
"""Makes sure that Torch-TensorRT can operate on multi-gpu systems using host dependencies"""
324324
run_l2_multi_gpu_tests(session, use_host_env=True)
325+
326+
@nox.session(python=["3"], reuse_venv=True)
327+
def download_test_models(session):
328+
"""Grab all the models needed for testing"""
329+
download_models(session, use_host_env=True)

0 commit comments

Comments
 (0)