Skip to content

Commit

Permalink
Update trainer.py
Browse files Browse the repository at this point in the history
Cleaning each time you compile the model the previous trainer metrics also erased the compilation of other models with are a cominbation of that model. Given problems in archiquectures shuch as GAN. As explain in issue:
  • Loading branch information
TheMGGdev authored Nov 8, 2024
1 parent 8409e18 commit 848fdde
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion keras/src/trainers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def compile(
wrapped in a `LossScaleOptimizer`, which will dynamically
scale the loss to prevent underflow.
"""
self._clear_previous_trainer_metrics()
optimizer = optimizers.get(optimizer)
self.optimizer = optimizer
if (
Expand Down

0 comments on commit 848fdde

Please sign in to comment.