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
5a7db20f
"src/git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "b0c2e607b8bab54ee3e23f2a285e50cbe5ba7101"
Commit
5a7db20f
authored
Dec 13, 2022
by
zhuww
Browse files
fix some problems about struture_module
parent
5e4d790d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
fastfold/model/nn/structure_module.py
fastfold/model/nn/structure_module.py
+1
-2
No files found.
fastfold/model/nn/structure_module.py
View file @
5a7db20f
...
...
@@ -518,7 +518,7 @@ class InvariantPointAttention(nn.Module):
if
(
_offload_inference
):
z
[
0
]
=
z
[
0
].
to
(
o_pt
.
device
)
# [*, N_res, H, C_z]
o_pair
=
torch
.
matmul
(
a
.
transpose
(
-
2
,
-
3
),
z
.
to
(
dtype
=
a
.
dtype
))
o_pair
=
torch
.
matmul
(
a
.
transpose
(
-
2
,
-
3
),
z
[
0
]
.
to
(
dtype
=
a
.
dtype
))
del
a
torch
.
cuda
.
empty_cache
()
...
...
@@ -774,7 +774,6 @@ class StructureModule(nn.Module):
s
=
self
.
layer_norm_s
(
s
)
# [*, N, N, C_z]
z
=
self
.
layer_norm_z
(
z
)
# inplace z
evoformer_output_dict
[
"pair"
]
=
evoformer_output_dict
[
"pair"
].
contiguous
()
torch
.
cuda
.
empty_cache
()
...
...
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