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
f85d67f4
Commit
f85d67f4
authored
Sep 13, 2023
by
sachinkadyan7
Committed by
Sachin Kadyan
Oct 10, 2023
Browse files
Bugfix for timings.json - now store timings per tag.
parent
9b114f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openfold/utils/script_utils.py
openfold/utils/script_utils.py
+1
-1
No files found.
openfold/utils/script_utils.py
View file @
f85d67f4
...
@@ -159,7 +159,7 @@ def run_model(model, batch, tag, output_dir):
...
@@ -159,7 +159,7 @@ def run_model(model, batch, tag, output_dir):
out
=
model
(
batch
)
out
=
model
(
batch
)
inference_time
=
time
.
perf_counter
()
-
t
inference_time
=
time
.
perf_counter
()
-
t
logger
.
info
(
f
"Inference time:
{
inference_time
}
"
)
logger
.
info
(
f
"Inference time:
{
inference_time
}
"
)
update_timings
({
"inference"
:
inference_time
},
os
.
path
.
join
(
output_dir
,
"timings.json"
))
update_timings
(
{
tag
:
{
"inference"
:
inference_time
}
}
,
os
.
path
.
join
(
output_dir
,
"timings.json"
))
model
.
config
.
template
.
enabled
=
template_enabled
model
.
config
.
template
.
enabled
=
template_enabled
...
...
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