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
173f055e
Commit
173f055e
authored
Jul 16, 2023
by
Dingquan Yu
Browse files
update test script
parent
0d348792
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
tests/test_multimer_datamodule.py
tests/test_multimer_datamodule.py
+1
-6
No files found.
tests/test_multimer_datamodule.py
View file @
173f055e
...
@@ -70,16 +70,11 @@ class TestMultimerDataModule(unittest.TestCase):
...
@@ -70,16 +70,11 @@ class TestMultimerDataModule(unittest.TestCase):
self
.
data_module
.
prepare_data
()
self
.
data_module
.
prepare_data
()
self
.
data_module
.
setup
()
self
.
data_module
.
setup
()
train_dataset
=
self
.
data_module
.
train_dataset
train_dataset
=
self
.
data_module
.
train_dataset
all_chain_features
,
ground_truth
=
train_dataset
[
0
]
all_chain_features
,
ground_truth
=
train_dataset
[
1
]
asym_ids
=
all_chain_features
[
'asym_id'
].
unique
()
print
(
f
"asym_ids is
{
asym_ids
}
"
)
print
(
f
"ground truth:"
)
add_batch_size_dimension
=
lambda
t
:
(
add_batch_size_dimension
=
lambda
t
:
(
t
.
unsqueeze
(
0
)
t
.
unsqueeze
(
0
)
)
)
all_chain_features
=
tensor_tree_map
(
add_batch_size_dimension
,
all_chain_features
)
all_chain_features
=
tensor_tree_map
(
add_batch_size_dimension
,
all_chain_features
)
with
torch
.
no_grad
():
with
torch
.
no_grad
():
out
=
self
.
model
(
all_chain_features
)
out
=
self
.
model
(
all_chain_features
)
print
(
f
"out masked_msa_logits is:
{
out
[
'masked_msa_logits'
].
shape
}
"
)
self
.
multimer_loss
(
out
,(
all_chain_features
,
ground_truth
))
self
.
multimer_loss
(
out
,(
all_chain_features
,
ground_truth
))
\ No newline at end of file
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