#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once template struct ELUParams { T alpha; T scale; T input_scale; }; template struct ELUBackwardParams { T alpha; T scale; T input_scale; bool is_result; }; // beta/threshold are kept at opmath (float) precision for every input dtype, // matching the CPU and CUDA kernels. struct SoftplusParams { float beta; float threshold; }; #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)