forked from facebookresearch/detectron2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix import exceptions in tracing.py for older (<1.12) versions of pyt…
…orch Summary: X-link: facebookresearch/d2go#362 Pull Request resolved: facebookresearch#4491 Recently landed D35518556 (facebookresearch@36a65a0) / Github: 36a65a0 throws an exception with older versions of PyTorch, due to a missing library for import. This has been reported by multiple members of the PyTorch community at facebookresearch@36a65a0 This change uses `try/except` to check for libraries and set flags on presence/absence to later guard code that would use them. Differential Revision: D38879134 fbshipit-source-id: 7c16f5cea14f7f19184f8c14f2503ab330e73b14
- Loading branch information
1 parent
36a65a0
commit cc4f271
Showing
2 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters