| 27 | |
| 28 | template<typename outType, bool USE_NATIVE_EXP> |
| 29 | auto exp_native_nonnative(float in) { |
| 30 | if constexpr (USE_NATIVE_EXP) |
| 31 | return sycl::native::exp(in); |
| 32 | else |
| 33 | return exp(in); |
| 34 | } |
| 35 | |
| 36 | template<typename outType, typename inType, bool USE_NATIVE_EXP> |
| 37 | class bilateralKernel { |