I answered the question for that case on StackOverflow.

If someone is interested in making the translation in an automatic way,
this would be nice as it would help make einsum available in Theano.

On Tue, Dec 06, 2016, 马凯 wrote:
> 
> 
> down votefavorite 
> <http://stackoverflow.com/questions/40958983/how-to-use-batch-tensordot-in-theano-like-numpy-einsum#>
> 
> I have a tensor3 with shape (3, 4, 5) and another tensor4 with shape (3, 4, 
> 7, 5). 
> 
> In numpy,
> 
>  result = np.einsum("ijk, ijmk->ijm", tensor3, tensor4)
>  print result.shape 
>  (3, 4, 7)
> 
> but in theano , how to do it .
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "theano-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.


-- 
Pascal

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to