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
When using the broadcast functionality with a 1x1 matrix and an arbitrary 1xn or nx1 matrix, we don't get a broadcasted matrix as a result but a 1x1 matrix which is the operation applied just to the first elements in the matrices.
Example:
Using the broadcast functionality with two matrices:
X= [1];
Y= [1, 2, 3](1,);
print(X+Y);
Output:
DenseMatrix(1x1, int64_t)
2
Expected Output:
DenseMatrix(1x3, int64_t)
2 3 4
The text was updated successfully, but these errors were encountered:
Garic152
changed the title
Matrix broadcasting not working for 1x1 ∘ 1xn/nx1 matrices
Matrix broadcasting not working for 1 x 1 ∘ 1 x n / n x 1 matrices
Aug 7, 2024
Garic152
changed the title
Matrix broadcasting not working for 1 x 1 ∘ 1 x n / n x 1 matrices
Matrix broadcasting not working for 1x1 ∘ 1xn / nx1 matrices
Aug 7, 2024
I recently came across the CUDA version of this problem. We just did not consider a 1x1 matrix as this is supposed to be a case for the EwBinaryObjSca kernel. Maybe a cast of that 1x1 to scalar is a quick fix for now?
Looking at the source code again it seems that we only support having the broadcast input on the right of the binary operation (see src/ir/daphneir/DaphneInferShapeOpInterface.cpp:710). Not changing this behavior for 0.3 anymore.
Description:
When using the broadcast functionality with a 1x1 matrix and an arbitrary 1xn or nx1 matrix, we don't get a broadcasted matrix as a result but a 1x1 matrix which is the operation applied just to the first elements in the matrices.
Example:
The text was updated successfully, but these errors were encountered: