git_version_info.py 616 B

1234567891011121314151617
  1. try:
  2. # This is populated by setup.py
  3. from .git_version_info_installed import *
  4. except ModuleNotFoundError:
  5. import os
  6. if os.path.isfile('version.txt'):
  7. # Will be missing from checkouts that haven't been installed (e.g., readthedocs)
  8. version = open('version.txt', 'r').read().strip()
  9. else:
  10. version = "0.0.0"
  11. git_hash = '[none]'
  12. git_branch = '[none]'
  13. from .ops.op_builder import ALL_OPS
  14. installed_ops = dict.fromkeys(ALL_OPS.keys(), False)
  15. compatible_ops = dict.fromkeys(ALL_OPS.keys(), False)
  16. torch_info = {'version': "0.0", "cuda_version": "0.0"}