Skip to content

Bihaqo/tf_einsum_opt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Optimizing TF's einsum function

Einsum is a very powerful function for contracting tensors of arbitrary dimension and index. However, on TensorFlow it is implemented as a sequence of matrix-by-matrix multiplication in the order of arguments, so if you provide the arguments in a non-optimal order, einsum maybe very slow.

For example usage see example.ipynb.

About

Optimize the order of execution for tf.einsum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages