Skip to content

Commit 55adc57

Browse files
authored
Fix Trainer.get_compile_config base case (empty dict) (#21212)
1 parent 3fcdbe0 commit 55adc57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

keras/src/trainers/trainer.py

+1
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ def get_compile_config(self):
945945
"""
946946
if self.compiled and hasattr(self, "_compile_config"):
947947
return self._compile_config.serialize()
948+
return {}
948949

949950
def compile_from_config(self, config):
950951
"""Compiles the model with the information given in config.

0 commit comments

Comments
 (0)