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

SeparateReality picture SeparateReality  路  3Comments

szagoruyko picture szagoruyko  路  3Comments

eliabruni picture eliabruni  路  3Comments

dablyo picture dablyo  路  3Comments

negrinho picture negrinho  路  3Comments