Pytorch: Matrix multiplication operator

Created on 16 Aug 2016  ·  3Comments  ·  Source: pytorch/pytorch

Instead of overloading the multiplication operator to do both element-wise and matrix-multiplication it would be nicer and much safer to just support Python's matrix multiplication operator (see PEP 465, A @ B is the matrix product, A * B the element-wise product).

Most helpful comment

this is now fixed in master

All 3 comments

A good reason to use Python 3

I had no idea there's a standardized symbol for matrix product. I think it's worth adding. Thanks!

this is now fixed in master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eliabruni picture eliabruni  ·  3Comments

szagoruyko picture szagoruyko  ·  3Comments

kuangliu picture kuangliu  ·  3Comments

cdluminate picture cdluminate  ·  3Comments

mishraswapnil picture mishraswapnil  ·  3Comments