-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
MWE:
using TensorOperations
function test_tensor()
A = rand(2, 2, 3)
B = rand(2, 4)
C = rand(2, 3)
@tensor D[i,j,k] := A[i,l,k] * B[l,j] + C[i,k]
end
test_tensor()ERROR: TensorOperations.IndexError{String}("add: (:i, :k) to (:i, :j, :k))")
I was expecting this to work, and for the values in C to be broadcast across the rows (dim 2) of D. Is there a reason why it doesn't?
Metadata
Metadata
Assignees
Labels
No labels