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
aea444ed
Commit
aea444ed
authored
Oct 20, 2021
by
Gustaf Ahdritz
Browse files
Move template pair stack out of single-template block (for DeepSpeed)
parent
896f8935
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
openfold/model/model.py
openfold/model/model.py
+8
-8
No files found.
openfold/model/model.py
View file @
aea444ed
...
@@ -136,12 +136,6 @@ class AlphaFold(nn.Module):
...
@@ -136,12 +136,6 @@ class AlphaFold(nn.Module):
**
self
.
config
.
template
.
distogram
,
**
self
.
config
.
template
.
distogram
,
)
)
t
=
self
.
template_pair_embedder
(
t
)
t
=
self
.
template_pair_embedder
(
t
)
t
=
self
.
template_pair_stack
(
t
,
pair_mask
.
unsqueeze
(
-
3
),
chunk_size
=
chunk_size
,
_mask_trans
=
self
.
config
.
_mask_trans
,
)
single_template_embeds
.
update
({
"pair"
:
t
})
single_template_embeds
.
update
({
"pair"
:
t
})
...
@@ -153,8 +147,14 @@ class AlphaFold(nn.Module):
...
@@ -153,8 +147,14 @@ class AlphaFold(nn.Module):
)
)
# [*, N, N, C_z]
# [*, N, N, C_z]
t
=
self
.
template_p
ointwise_att
(
t
=
self
.
template_p
air_stack
(
template_embeds
[
"pair"
],
template_embeds
[
"pair"
],
pair_mask
.
unsqueeze
(
-
3
),
chunk_size
=
chunk_size
,
_mask_trans
=
self
.
config
.
_mask_trans
,
)
t
=
self
.
template_pointwise_att
(
t
,
z
,
z
,
template_mask
=
batch
[
"template_mask"
],
template_mask
=
batch
[
"template_mask"
],
chunk_size
=
chunk_size
,
chunk_size
=
chunk_size
,
...
...
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