Utils.h 268 B

12345678910111213
  1. #pragma once
  2. #include <c10/macros/Export.h>
  3. namespace at::cpu {
  4. TORCH_API bool is_cpu_support_avx2();
  5. TORCH_API bool is_cpu_support_avx512();
  6. // Detect if CPU support Vector Neural Network Instruction.
  7. TORCH_API bool is_cpu_support_vnni();
  8. } // namespace at::cpu