Fix four step fft

This commit is contained in:
Angelos Katharopoulos 2025-05-08 14:14:59 -07:00
parent 2a41caa00e
commit 83762691ba

View File

@ -1117,8 +1117,11 @@ void fft_four_step_inplace(
}
// Get the kernel
auto in_type = in.dtype() == float32 ? "float" : "float2";
auto out_type = out.dtype() == float32 ? "float" : "float2";
auto to_type = [](const array& x) {
return x.dtype() == float32 ? "float" : "float2";
};
auto in_type = step == 0 ? to_type(in) : to_type(intermediate);
auto out_type = step == 0 ? to_type(intermediate) : to_type(out);
std::string hash_name;
std::string kname;
kname.reserve(64);