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
c6ac105d
Commit
c6ac105d
authored
Jun 22, 2023
by
Geoffrey Yu
Browse files
remove recycling dimentions
parent
d3b2b265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_permutation.py
tests/test_permutation.py
+3
-3
No files found.
tests/test_permutation.py
View file @
c6ac105d
...
...
@@ -83,7 +83,7 @@ class TestPermutation(unittest.TestCase):
# Modify asym_id, entity_id and sym_id so that it encodes
# 2 chains
# #
asym_id
=
[
1
]
*
9
+
[
2
]
*
13
asym_id
=
[
1
]
*
9
+
[
2
]
*
13
batch
[
"asym_id"
]
=
torch
.
tensor
(
asym_id
,
dtype
=
torch
.
float64
)
# batch["entity_id"] = torch.randint(0, 1, size=(n_res,))
batch
[
'entity_id'
]
=
torch
.
tensor
(
asym_id
,
dtype
=
torch
.
float64
)
...
...
@@ -94,10 +94,10 @@ class TestPermutation(unittest.TestCase):
t
.
unsqueeze
(
-
1
).
expand
(
*
t
.
shape
,
c
.
data
.
common
.
max_recycling_iters
)
)
print
(
f
"max_recycling_iters is
{
c
.
data
.
common
.
max_recycling_iters
}
"
)
batch
=
tensor_tree_map
(
add_recycling_dims
,
batch
)
input_
batch
=
tensor_tree_map
(
add_recycling_dims
,
batch
)
with
torch
.
no_grad
():
out
=
model
(
batch
)
out
=
model
(
input_
batch
)
print
(
"finished running multimer forward"
)
print
(
f
"out is
{
type
(
out
)
}
and has keys
{
out
.
keys
()
}
"
)
print
(
f
"final_atom_positions is
{
out
[
'final_atom_positions'
].
shape
}
"
)
...
...
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