Skip to content

Commit

Permalink
initialize state.time_start befroe state.job_count
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Sep 13, 2023
1 parent 102b661 commit cf1edc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/shared_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def dict(self):

def begin(self, job: str = "(unknown)"):
self.sampling_step = 0
self.time_start = time.time()
self.job_count = -1
self.processing_has_refined_job_count = False
self.job_no = 0
Expand All @@ -114,7 +115,6 @@ def begin(self, job: str = "(unknown)"):
self.skipped = False
self.interrupted = False
self.textinfo = None
self.time_start = time.time()
self.job = job
devices.torch_gc()
log.info("Starting job %s", job)
Expand Down

0 comments on commit cf1edc2

Please sign in to comment.