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
a9d3dc9f
"...git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "ae2c03a94db9a4948a17a4defaf679c519e13d4e"
Commit
a9d3dc9f
authored
Nov 02, 2021
by
Marta
Browse files
dont wait until 2nd epoch to measure perf
parent
f1a9d2b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
openfold/utils/logger.py
openfold/utils/logger.py
+2
-4
No files found.
openfold/utils/logger.py
View file @
a9d3dc9f
...
...
@@ -43,12 +43,10 @@ class PerformanceLoggingCallback(Callback):
self
.
timestamps
.
append
(
time
.
time
())
def
on_train_batch_start
(
self
,
trainer
,
pl_module
,
batch
,
batch_idx
,
dataloader_idx
):
if
trainer
.
current_epoch
==
1
:
self
.
do_step
()
self
.
do_step
()
def
on_test_batch_start
(
self
,
trainer
,
pl_module
,
batch
,
batch_idx
,
dataloader_idx
):
if
trainer
.
current_epoch
==
1
:
self
.
do_step
()
self
.
do_step
()
def
process_performance_stats
(
self
,
deltas
):
def
_round3
(
val
):
...
...
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