Skip to content

Commit

Permalink
Update torchvision/extension.py
Browse files Browse the repository at this point in the history
Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
  • Loading branch information
atalman and datumbox committed Oct 6, 2022
1 parent c9dd627 commit af7d498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _has_ops():
path_arr = env_path.split(";")
for path in path_arr:
if os.path.exists(path):
os.add_dll_directory(path)
os.add_dll_directory(path) # type: ignore[attr-defined]

lib_path = _get_extension_path("_C")
torch.ops.load_library(lib_path)
Expand Down

0 comments on commit af7d498

Please sign in to comment.