#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include #include #include #include #include namespace sdp { C10_EXPORT bool is_flash_attention_available(); C10_EXPORT bool can_use_flash_attention(sdp_params const& params, bool debug); C10_EXPORT bool check_flash_attention_hardware_support( sdp_params const& params, bool debug); } // namespace sdp #else #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined." #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)