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: Pull Request resolved: #362 X-link: facebookresearch/detectron2#4491 Recently landed D35518556 (1ffc801) / Github: 36a65a0907d90ed591479b2ebaa8b61cfa0b4ef0 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/detectron2@36a65a0 This change uses `try/except` to check for libraries and set flags on presence/absence to later guard code that would use them. Reviewed By: wat3rBro Differential Revision: D38879134 fbshipit-source-id: 72f5a7a8d350eb82be87567f006368bf207f5a74
- Loading branch information