Skip to content

Fix optimizer reset using wrong variable names#1

Open
alowet wants to merge 2 commits into
sytseng:mainfrom
alowet:main
Open

Fix optimizer reset using wrong variable names#1
alowet wants to merge 2 commits into
sytseng:mainfrom
alowet:main

Conversation

@alowet

@alowet alowet commented Apr 7, 2026

Copy link
Copy Markdown

The optimizer reset logic was checking opt (the optimizer object) instead of self.optimizer (the string config), and assigning to optimizer instead of opt. This would cause the reset to malfunction during training restarts.

alowet and others added 2 commits April 7, 2026 14:17
The optimizer reset logic was checking `opt` (the optimizer object) instead
of `self.optimizer` (the string config), and assigning to `optimizer` instead
of `opt`. This would cause the reset to malfunction during training restarts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tf.log was deprecated in TensorFlow 2.x in favor of tf.math.log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant