You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Numpy, it raises TypeError as dtype cannot be provided together with out.
In cuNumeric, it pass.
Case-3
a = [[1, 2], [3, 4]]
b = [[5, 6]]
axis = 1
num.concatenate((num.array(a), num.array(b)), axis=axis)
In Numpy, it raises ValueError as along axis=0, the size of a and b are not equal.
In cuNumeric, it pass.
Case-4
a = [1, 2]
b = [5, 6]
num.concatenate((num.array(a), num.array(b)), axis=axis)
For axis = -2 or 1,
In Numpy, it raises ValueError
In cuNumeric, it raises IndexError
Case-5
a = [[1, 2], [3, 4]]
b = [[5, 6]]
num.concatenate(num.array(a), num.array(b)), axis=0, casting="unknown")
For invalid casting,
In Numpy, raise ValueError
In cuNumeric, pass
The text was updated successfully, but these errors were encountered:
robinwnv
changed the title
NumPy and cuNumeric behave differently in 3 cases in API concatenate
NumPy and cuNumeric behave differently in 5 cases in API concatenate
Mar 10, 2023
NumPy and cuNumeric behave differently for the following cases.
Some of the cases need to be fixed while the others are expected divergences.
Case-1
In Numpy, in both cases, it raises ValueError
In cuNumeric, in both cases, it raises IndexError
Case-2
In Numpy, it raises TypeError as dtype cannot be provided together with out.
In cuNumeric, it pass.
Case-3
In Numpy, it raises ValueError as along axis=0, the size of a and b are not equal.
In cuNumeric, it pass.
Case-4
For axis = -2 or 1,
In Numpy, it raises ValueError
In cuNumeric, it raises IndexError
Case-5
For invalid casting,
In Numpy, raise ValueError
In cuNumeric, pass
The text was updated successfully, but these errors were encountered: