You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/03/16 09:00:46 UTC

[GitHub] feevos commented on issue #10127: feature request: tensor contraction

feevos commented on issue #10127: feature request: tensor contraction
URL: https://github.com/apache/incubator-mxnet/issues/10127#issuecomment-373646958
 
 
   The operation can be performed with successive operations of transpose,  reshape and dot,  please disregard. 
   E.g. 
   
   
   ```Python
   data1 = nd.random_uniform(shape = [10,10,5,5])
   data2 = nd.random_uniform(shape = [5,5,20,20])
   
   # constraction.shape == (10,10,20,20) 
   contraction = nd.dot(data1.reshape([10,10,5*5]),data2.reshape([5*5,20,20]))
   ```
   can be used with transpose as well if indices are not in last, first position. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services