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
cd41d73f
Commit
cd41d73f
authored
May 07, 2022
by
Gustaf Ahdritz
Browse files
Add shape assertion to rotation code
parent
253aff64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
openfold/utils/rigid_utils.py
openfold/utils/rigid_utils.py
+1
-3
No files found.
openfold/utils/rigid_utils.py
View file @
cd41d73f
...
@@ -74,9 +74,7 @@ def rot_vec_mul(
...
@@ -74,9 +74,7 @@ def rot_vec_mul(
Returns:
Returns:
[*, 3] rotated coordinates
[*, 3] rotated coordinates
"""
"""
x
=
t
[...,
0
]
x
,
y
,
z
=
torch
.
unbind
(
t
,
dim
=-
1
)
y
=
t
[...,
1
]
z
=
t
[...,
2
]
return
torch
.
stack
(
return
torch
.
stack
(
[
[
r
[...,
0
,
0
]
*
x
+
r
[...,
0
,
1
]
*
y
+
r
[...,
0
,
2
]
*
z
,
r
[...,
0
,
0
]
*
x
+
r
[...,
0
,
1
]
*
y
+
r
[...,
0
,
2
]
*
z
,
...
...
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