Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resolve
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
resolve
Commits
74831e32
Commit
74831e32
authored
1 year ago
by
Jakob Roth
Browse files
Options
Downloads
Patches
Plain Diff
likelihood.py: add key order for einsum
parent
b592d998
No related branches found
No related tags found
No related merge requests found
Pipeline
#179428
passed
1 year ago
Stage: build_docker
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resolve/likelihood.py
+2
-1
2 additions, 1 deletion
resolve/likelihood.py
with
2 additions
and
1 deletion
resolve/likelihood.py
+
2
−
1
View file @
74831e32
...
...
@@ -47,7 +47,8 @@ class PolMatrixProduct(ift.Operator):
r3
=
(
rsh
.
ducktape
(
key3
)).
ducktape_left
(
key3
)
einsum_dom
=
ift
.
MultiDomain
.
make
({
key1
:
ndom
,
key2
:
ndom
,
key3
:
ndom
})
einsum
=
ift
.
MultiLinearEinsum
(
einsum_dom
,
"
ijr,jkr,klr->ilr
"
)
einsum
=
ift
.
MultiLinearEinsum
(
einsum_dom
,
"
ijr,jkr,klr->ilr
"
,
key_order
=
(
key1
,
key2
,
key3
))
self
.
_op
=
rsh
.
adjoint
@
einsum
@
(
r1
+
r2
+
r3
)
def
apply
(
self
,
x
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment