git_version_info.py 706 B

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