-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the inplace version of the einsum function (#159)
* save inplace omeinsum * add inplace binary rules * fix docstrings * unitary - initial * save * binary rule pass * rename api * tested unary rule * new einsum.jl * update * update * save * update, no obvious bug * benchmark perm * update * inplace nested einsum * better compiling * fix cuda * fix bugs * cuda einsum * improve test coverage
- Loading branch information
Showing
21 changed files
with
916 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[deps] | ||
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" | ||
OMEinsum = "ebe7aa44-baf0-506c-a96f-8464559b3922" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using OMEinsum, BenchmarkTools | ||
|
||
function benchmark_tensorpermute() | ||
# tensorpermute | ||
A = randn(fill(2, 28)...); | ||
C = zero(A); | ||
perm = [18 22 11 21 15 9 10 19 24 14 5 1 17 20 26 25 28 27 7 6 3 13 12 16 8 23 2 4] |> vec | ||
@btime OMEinsum.tensorpermute!($C, $A, $perm, true, false) evals=3 | ||
nothing | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.