EinSum GAME CHANGER

Post Reply
malohamon
Posts: 1
Joined: Fri Apr 30, 2021 11:50 pm

EinSum GAME CHANGER

Post by malohamon »

Hey just thought i'd drop this here because I always struggle with matrix multiplication order and I always spend hours debugging the resulting matrix dimentions.
I recently came across pytorch's einsum function and it's a gamechanger! It basically allows you to define the dimentions of your input matrix and the desired output and it will multiply and sum the matrix in the most effcient way.
There's an equivalent function for tf and numpy :)
Post Reply

Return to “Natural Language Processing with Deep Learning in Python”