pytorch/torch/backends/cpu/__init__.py
Edward Z. Yang 3bf922a6ce Apply UFMT to low traffic torch modules (#106249)
Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/106249
Approved by: https://github.com/Skylion007
2023-07-29 23:37:30 +00:00

20 lines
299 B
Python

import torch
__all__ = [
"get_cpu_capability",
]
def get_cpu_capability() -> str:
r"""Returns cpu capability as a string value.
Possible values:
- "DEFAULT"
- "VSX"
- "Z VECTOR"
- "NO AVX"
- "AVX2"
- "AVX512"
"""
return torch._C._get_cpu_capability()