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
016bfd45
Commit
016bfd45
authored
Jul 28, 2022
by
Nikita Smetanin
Browse files
Minor updates & optimizations to support ESMFold
parent
4ac9a223
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
openfold/model/structure_module.py
openfold/model/structure_module.py
+4
-0
No files found.
openfold/model/structure_module.py
View file @
016bfd45
...
@@ -752,6 +752,7 @@ class StructureModule(nn.Module):
...
@@ -752,6 +752,7 @@ class StructureModule(nn.Module):
device
=
device
,
device
=
device
,
requires_grad
=
False
,
requires_grad
=
False
,
),
),
persistent
=
False
,
)
)
if
not
hasattr
(
self
,
"group_idx"
):
if
not
hasattr
(
self
,
"group_idx"
):
self
.
register_buffer
(
self
.
register_buffer
(
...
@@ -761,6 +762,7 @@ class StructureModule(nn.Module):
...
@@ -761,6 +762,7 @@ class StructureModule(nn.Module):
device
=
device
,
device
=
device
,
requires_grad
=
False
,
requires_grad
=
False
,
),
),
persistent
=
False
,
)
)
if
not
hasattr
(
self
,
"atom_mask"
):
if
not
hasattr
(
self
,
"atom_mask"
):
self
.
register_buffer
(
self
.
register_buffer
(
...
@@ -771,6 +773,7 @@ class StructureModule(nn.Module):
...
@@ -771,6 +773,7 @@ class StructureModule(nn.Module):
device
=
device
,
device
=
device
,
requires_grad
=
False
,
requires_grad
=
False
,
),
),
persistent
=
False
,
)
)
if
not
hasattr
(
self
,
"lit_positions"
):
if
not
hasattr
(
self
,
"lit_positions"
):
self
.
register_buffer
(
self
.
register_buffer
(
...
@@ -781,6 +784,7 @@ class StructureModule(nn.Module):
...
@@ -781,6 +784,7 @@ class StructureModule(nn.Module):
device
=
device
,
device
=
device
,
requires_grad
=
False
,
requires_grad
=
False
,
),
),
persistent
=
False
,
)
)
def
torsion_angles_to_frames
(
self
,
r
,
alpha
,
f
):
def
torsion_angles_to_frames
(
self
,
r
,
alpha
,
f
):
...
...
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