-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DLFW changes 25.01 onwards #3356
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
# Use system installed Python packages | ||
PYT_PATH = ( | ||
"/usr/local/lib/python3.10/dist-packages" | ||
"/usr/local/lib/python3.12/dist-packages" | ||
if not "PYT_PATH" in os.environ | ||
else os.environ["PYT_PATH"] | ||
) | ||
|
@@ -34,7 +34,7 @@ | |
# Set epochs to train VGG model for accuracy tests | ||
EPOCHS = 25 | ||
|
||
SUPPORTED_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12"] | ||
SUPPORTED_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.12"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC we dont support py 3.7, 3.8 anymore There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok I will remove them then |
||
|
||
nox.options.sessions = [ | ||
"l0_api_tests-" + "{}.{}".format(sys.version_info.major, sys.version_info.minor) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
import torch | ||
import torch.nn as nn | ||
import torch_tensorrt as torchtrt | ||
import torch_tensorrt.ts.ptq as PTQ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is fine to have but we should drop these tests from DLFW as this API is being deprecated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes they are dropped in DLFW |
||
import torchvision | ||
import torchvision.transforms as transforms | ||
import torch_tensorrt.ts.ptq as PTQ | ||
from torch.nn import functional as F | ||
from torch_tensorrt.ts.logging import * | ||
|
||
|
@@ -15,7 +15,7 @@ def find_repo_root(max_depth=10): | |
dir_path = os.path.dirname(os.path.realpath(__file__)) | ||
for i in range(max_depth): | ||
files = os.listdir(dir_path) | ||
if "WORKSPACE" in files: | ||
if "MODULE.bazel" in files: | ||
return dir_path | ||
else: | ||
dir_path = os.path.dirname(dir_path) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider changing to