Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
2726892a
Commit
2726892a
authored
Feb 03, 2022
by
Gustaf Ahdritz
Browse files
Remove more undefined references
parent
9285d94d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openfold/model/primitives.py
openfold/model/primitives.py
+2
-2
No files found.
openfold/model/primitives.py
View file @
2726892a
...
...
@@ -552,7 +552,7 @@ def _lma(
]
a
=
torch
.
einsum
(
"...qhd,...khd->...hqk"
,
q
uery
,
key
"...qhd,...khd->...hqk"
,
q
_chunk
,
k_chunk
,
)
for
b
in
small_bias_chunks
:
...
...
@@ -562,7 +562,7 @@ def _lma(
max_a
=
torch
.
max
(
a
,
dim
=-
1
,
keepdim
=
True
)[
0
]
exp_a
=
torch
.
exp
(
a
-
max_a
)
exp_v
=
torch
.
einsum
(
"...vhf,...qhv->...qhf"
,
v
alue
,
exp_a
)
exp_v
=
torch
.
einsum
(
"...vhf,...qhv->...qhf"
,
v
_chunk
,
exp_a
)
maxes
.
append
(
max_a
.
detach
().
squeeze
(
-
1
))
weights
.
append
(
torch
.
sum
(
exp_a
,
dim
=-
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment