Skip to content

Commit

Permalink
Fix: save model as .keras temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
RollerKnobster committed Jun 25, 2024
1 parent 0150f0f commit 8f738fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gordo/machine/model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __getstate__(self):

if hasattr(self, "model") and self.model is not None:
with tempfile.NamedTemporaryFile("w", suffix=".keras") as tf:
save_model(self.model, tf, overwrite=True)
save_model(self.model, tf.name, overwrite=True)
tf.seek(0)
state["model"] = tf
if hasattr(self, "history"):
Expand Down

0 comments on commit 8f738fb

Please sign in to comment.