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
FastFold
Commits
f2d8aa06
Unverified
Commit
f2d8aa06
authored
Oct 11, 2022
by
oahzxl
Committed by
GitHub
Oct 11, 2022
Browse files
Fix OuterProductMean (#81)
Can get stable results now
parent
e7234756
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fastfold/model/fastnn/ops.py
fastfold/model/fastnn/ops.py
+2
-2
No files found.
fastfold/model/fastnn/ops.py
View file @
f2d8aa06
...
@@ -166,9 +166,9 @@ class OutProductMean(nn.Module):
...
@@ -166,9 +166,9 @@ class OutProductMean(nn.Module):
O
=
rearrange
(
O
,
'b i j d e -> b i j (d e)'
)
O
=
rearrange
(
O
,
'b i j d e -> b i j (d e)'
)
O
=
self
.
o_linear
(
O
)
O
=
self
.
o_linear
(
O
)
norm0
=
norm
[:,
ax
:
ax
+
chunk_size
,
:,
:]
norm0
=
norm
[:,
ax
:
ax
+
chunk_size
,
:,
:]
Z
[:,
ax
:
ax
+
chunk_size
,
:,
:]
+
=
O
/
norm0
Z
[:,
ax
:
ax
+
chunk_size
,
:,
:]
=
O
/
norm0
return
Z
return
Z
+
Z_raw
def
inplace
(
self
,
M
,
M_mask
,
Z_raw
):
def
inplace
(
self
,
M
,
M_mask
,
Z_raw
):
...
...
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