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
4b3a102f
Commit
4b3a102f
authored
Jul 15, 2022
by
Gustaf Ahdritz
Browse files
Fix timing in inference script
parent
e6852aee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
run_pretrained_openfold.py
run_pretrained_openfold.py
+4
-2
No files found.
run_pretrained_openfold.py
View file @
4b3a102f
...
@@ -117,7 +117,8 @@ def run_model(model, batch, tag, args):
...
@@ -117,7 +117,8 @@ def run_model(model, batch, tag, args):
logger
.
info
(
f
"Running inference for
{
tag
}
..."
)
logger
.
info
(
f
"Running inference for
{
tag
}
..."
)
t
=
time
.
perf_counter
()
t
=
time
.
perf_counter
()
out
=
model
(
batch
)
out
=
model
(
batch
)
logger
.
info
(
f
"Inference time:
{
time
.
perf_counter
()
-
t
}
"
)
inference_time
=
time
.
perf_counter
()
-
t
logger
.
info
(
f
"Inference time:
{
inference_time
}
"
)
return
out
return
out
...
@@ -429,8 +430,9 @@ def main(args):
...
@@ -429,8 +430,9 @@ def main(args):
)
)
t
=
time
.
perf_counter
()
t
=
time
.
perf_counter
()
trace_model_
(
model
,
processed_feature_dict
)
trace_model_
(
model
,
processed_feature_dict
)
tracing_time
=
time
.
perf_counter
()
-
t
logger
.
info
(
logger
.
info
(
f
"Tracing time:
{
t
ime
.
perf_counter
()
-
t
}
"
f
"Tracing time:
{
t
racing_time
}
"
)
)
cur_tracing_interval
=
rounded_seqlen
cur_tracing_interval
=
rounded_seqlen
...
...
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