Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Merge requests
!466
Something went wrong on our end
Memory leak: Catch error and retry
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Memory leak: Catch error and retry
memory-leak-catch-error-and-retry
into
main
Overview
9
Commits
17
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Manon Blanco
requested to merge
memory-leak-catch-error-and-retry
into
main
5 months ago
Overview
9
Commits
17
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
Refs
https://redmine.teklia.com/issues/8765
Edited
4 months ago
by
Manon Blanco
0
0
Merge request reports
Viewing commit
7bfa9468
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7bfa9468
Use autocast
· 7bfa9468
Manon Blanco
authored
5 months ago
dan/ocr/manager/training.py
+
2
−
1
Options
@@ -690,7 +690,8 @@ class GenericTrainingManager:
for
key
,
values
in
batch_data
.
items
()
},
]:
self
.
zero_optimizers
()
with
autocast
(
enabled
=
False
):
self
.
zero_optimizers
()
# Set models trainable
for
model_name
in
self
.
models
:
Loading