experiments-config.h 766 B

123456789101112131415161718192021222324252627282930
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. // Copyright 2023 Google LLC
  3. //
  4. // This source code is licensed under the BSD-style license found in the
  5. // LICENSE file in the root directory of this source tree.
  6. #pragma once
  7. #include <stdbool.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. struct xnn_experiment_config {
  12. int dummy; // C requires that a struct or union has at least one member
  13. };
  14. struct xnn_experiment_config* xnn_get_experiment_config();
  15. void xnn_experiment_enable_adaptive_avx_optimization();
  16. #ifdef __cplusplus
  17. } // extern "C"
  18. #endif
  19. #else
  20. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  21. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)