Einsum Operator as used in Numpy, TensorFlow and PyTorch - Essential Python for Beginners

preview_player
Показать описание
Numpy's Einsum Operator is an underrated Matrix Operation. We shall show how to write clean code using this Operator!

- Don't forget to like and Subscribe :)

Feel free to ask any questions.

Connect with us here:
Рекомендации по теме
Комментарии
Автор

Thank you! This is the best video on Einsum with clear explanations and great examples. Really appreciate the addition of how einsum is used in the Transformer model too because attention is widely used in many different models now.

timandersen
Автор

I tried your example matrices of A and B to get B^T*A in NumPy. The shape of B^T*A was (1, 4, 1, 2), but the elements in that array did not match up with the elements of your B^T*A array in the video.

benjaminreynolds