Skip to content

Commit

Permalink
check gpu_dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
mszhanyi committed Dec 15, 2023
1 parent 93b2490 commit 332fce2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/nuget/validate_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ def validate_nuget(args):
nuget_file_name = nuget_packages_found_in_path[0]
full_nuget_path = os.path.join(args.package_path, nuget_file_name)

if "Gpu" in nuget_file_name and "Gpu-" not in nuget_file_name:
is_gpu_package = True
is_gpu_dependent_package = False
if "Gpu" in nuget_file_name:
is_gpu_package = bool("Gpu-" not in nuget_file_name)
is_gpu_dependent_package = bool("Gpu-" in nuget_file_name)
else:
is_gpu_package = False
is_gpu_dependent_package = True
is_gpu_dependent_package = False

if "directml" in nuget_file_name.lower():
is_dml_package = True
Expand Down

0 comments on commit 332fce2

Please sign in to comment.