We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d582111 commit 954c16cCopy full SHA for 954c16c
bayesflow/workflows/basic_workflow.py
@@ -125,6 +125,10 @@ def __init__(
125
file_ext = self.checkpoint_name + ".weights.h5"
126
else:
127
file_ext = self.checkpoint_name + ".keras"
128
+
129
+ # If the directory checkpoint_filepath does not exist yet, create it.
130
+ os.makedirs(self.checkpoint_filepath, exist_ok=True)
131
132
checkpoint_full_filepath = os.path.join(self.checkpoint_filepath, file_ext)
133
if os.path.exists(checkpoint_full_filepath):
134
msg = (
0 commit comments