Half.h 555 B

12345678910111213
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #include <torch/headeronly/util/Half.h>
  3. // need to keep the following for BC because the APIs in here were exposed
  4. // before migrating Half to torch/headeronly
  5. #if (defined(CPU_CAPABILITY_AVX2) || defined(CPU_CAPABILITY_AVX512)) && \
  6. !defined(__APPLE__)
  7. #include <ATen/cpu/vec/vec_half.h>
  8. #endif
  9. #else
  10. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  11. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)