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
We can implement a python version infer shape to test our understanding, even better, we can use online python IDE with all python modules ready to use.
ab,bcd,bc->ca means X[a,b] * Y[b,c,d] * Z[b,c] -> W[c,a]
notic that b,d is missing in W subscript, so they are accumulated into same entry W[c,a]. So ->can be think of as accumulate into.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
what is einsum?
https://zhuanlan.zhihu.com/p/74462893
https://numpy.org/doc/stable/reference/generated/numpy.einsum.html
We can implement a python version infer shape to test our understanding, even better, we can use online python IDE with all python modules ready to use.
ab,bcd,bc->ca
meansX[a,b] * Y[b,c,d] * Z[b,c] -> W[c,a]
notic that b,d is missing in W subscript, so they are accumulated into same entry W[c,a]. So
->
can be think of asaccumulate into
.Beta Was this translation helpful? Give feedback.
All reactions