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: a6d1b2e7484a44e0bf611eee293aef351dd0db45
- Loading branch information
1 parent
89ec4ab
commit e731410
Showing
2 changed files
with
26 additions
and
10 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