-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setUnion does not work on arrays of size 1 #1660
Comments
Can you show some example code in C that fails ? |
@pavanky @ranjanan Reported this on gitter earlier today and i found that the following code stub generates the error he was talking about. const int n = 1;
af::array A = af::randu(n, f32);
af::array B = af::randu(n, f32);
af::array C = af::setUnion(A, B, false); If n = 1, earlier code generates the below error.
|
@9prady9 can you fix the issue by adding For example I see |
@pavanky I have checked for other files that are using |
Fixed in hotfix-3.4.2 |
Unions of size 1 give the following error:
It works for arrays with 2 or more elements though.
Ref JuliaGPU/ArrayFire.jl#99
The text was updated successfully, but these errors were encountered: