m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.6 KiB

6 months ago
  1. # This file is generated by numpy's setup.py
  2. # It contains system_info results at the time of building this package.
  3. __all__ = ["get_info","show"]
  4. import os
  5. import sys
  6. extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs')
  7. if sys.platform == 'win32' and os.path.isdir(extra_dll_dir):
  8. if sys.version_info >= (3, 8):
  9. os.add_dll_directory(extra_dll_dir)
  10. else:
  11. os.environ.setdefault('PATH', '')
  12. os.environ['PATH'] += os.pathsep + extra_dll_dir
  13. blas_mkl_info={}
  14. blis_info={}
  15. openblas_info={'library_dirs': ['D:\\a\\1\\s\\numpy\\build\\openblas_info'], 'libraries': ['openblas_info'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  16. blas_opt_info={'library_dirs': ['D:\\a\\1\\s\\numpy\\build\\openblas_info'], 'libraries': ['openblas_info'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  17. lapack_mkl_info={}
  18. openblas_lapack_info={'library_dirs': ['D:\\a\\1\\s\\numpy\\build\\openblas_lapack_info'], 'libraries': ['openblas_lapack_info'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  19. lapack_opt_info={'library_dirs': ['D:\\a\\1\\s\\numpy\\build\\openblas_lapack_info'], 'libraries': ['openblas_lapack_info'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  20. def get_info(name):
  21. g = globals()
  22. return g.get(name, g.get(name + "_info", {}))
  23. def show():
  24. """
  25. Show libraries in the system on which NumPy was built.
  26. Print information about various resources (libraries, library
  27. directories, include directories, etc.) in the system on which
  28. NumPy was built.
  29. See Also
  30. --------
  31. get_include : Returns the directory containing NumPy C
  32. header files.
  33. Notes
  34. -----
  35. Classes specifying the information to be printed are defined
  36. in the `numpy.distutils.system_info` module.
  37. Information may include:
  38. * ``language``: language used to write the libraries (mostly
  39. C or f77)
  40. * ``libraries``: names of libraries found in the system
  41. * ``library_dirs``: directories containing the libraries
  42. * ``include_dirs``: directories containing library header files
  43. * ``src_dirs``: directories containing library source files
  44. * ``define_macros``: preprocessor macros used by
  45. ``distutils.setup``
  46. * ``baseline``: minimum CPU features required
  47. * ``found``: dispatched features supported in the system
  48. * ``not found``: dispatched features that are not supported
  49. in the system
  50. Examples
  51. --------
  52. >>> import numpy as np
  53. >>> np.show_config()
  54. blas_opt_info:
  55. language = c
  56. define_macros = [('HAVE_CBLAS', None)]
  57. libraries = ['openblas', 'openblas']
  58. library_dirs = ['/usr/local/lib']
  59. """
  60. from numpy.core._multiarray_umath import (
  61. __cpu_features__, __cpu_baseline__, __cpu_dispatch__
  62. )
  63. for name,info_dict in globals().items():
  64. if name[0] == "_" or type(info_dict) is not type({}): continue
  65. print(name + ":")
  66. if not info_dict:
  67. print(" NOT AVAILABLE")
  68. for k,v in info_dict.items():
  69. v = str(v)
  70. if k == "sources" and len(v) > 200:
  71. v = v[:60] + " ...\n... " + v[-60:]
  72. print(" %s = %s" % (k,v))
  73. features_found, features_not_found = [], []
  74. for feature in __cpu_dispatch__:
  75. if __cpu_features__[feature]:
  76. features_found.append(feature)
  77. else:
  78. features_not_found.append(feature)
  79. print("Supported SIMD extensions in this NumPy install:")
  80. print(" baseline = %s" % (','.join(__cpu_baseline__)))
  81. print(" found = %s" % (','.join(features_found)))
  82. print(" not found = %s" % (','.join(features_not_found)))