cpu: complex scan dispatch

This commit is contained in:
Yury Popov 2025-04-20 00:16:08 +03:00
parent 38f593026c
commit c7e326bb44
No known key found for this signature in database
GPG Key ID: 76DE18AD6634F257

View File

@ -330,7 +330,8 @@ void Scan::eval_cpu(const std::vector<array>& inputs, array& out) {
reduce_type_, in, out, axis_, reverse_, inclusive_);
break;
case complex64:
throw std::runtime_error("Scan ops do not support complex types yet");
scan_dispatch<complex64_t, complex64_t>(
reduce_type_, in, out, axis_, reverse_, inclusive_);
break;
}
});