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
54457695
Commit
54457695
authored
Jul 28, 2022
by
epenning
Browse files
Propagate use_flash in offloaded inference
parent
0d2dd5d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
openfold/model/evoformer.py
openfold/model/evoformer.py
+2
-0
No files found.
openfold/model/evoformer.py
View file @
54457695
...
@@ -721,6 +721,7 @@ class EvoformerStack(nn.Module):
...
@@ -721,6 +721,7 @@ class EvoformerStack(nn.Module):
pair_mask
:
torch
.
Tensor
,
pair_mask
:
torch
.
Tensor
,
chunk_size
:
int
,
chunk_size
:
int
,
use_lma
:
bool
=
False
,
use_lma
:
bool
=
False
,
use_flash
:
bool
=
False
,
_mask_trans
:
bool
=
True
,
_mask_trans
:
bool
=
True
,
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
,
torch
.
Tensor
]:
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
,
torch
.
Tensor
]:
assert
(
not
(
self
.
training
or
torch
.
is_grad_enabled
()))
assert
(
not
(
self
.
training
or
torch
.
is_grad_enabled
()))
...
@@ -731,6 +732,7 @@ class EvoformerStack(nn.Module):
...
@@ -731,6 +732,7 @@ class EvoformerStack(nn.Module):
z
=
input_tensors
[
1
],
z
=
input_tensors
[
1
],
chunk_size
=
chunk_size
,
chunk_size
=
chunk_size
,
use_lma
=
use_lma
,
use_lma
=
use_lma
,
use_flash
=
use_flash
,
msa_mask
=
msa_mask
,
msa_mask
=
msa_mask
,
pair_mask
=
pair_mask
,
pair_mask
=
pair_mask
,
inplace_safe
=
True
,
inplace_safe
=
True
,
...
...
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