We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c95bfe commit a91d006Copy full SHA for a91d006
keras/src/callbacks/backup_and_restore.py
@@ -37,6 +37,7 @@ class BackupAndRestore(Callback):
37
>>> callback = keras.callbacks.BackupAndRestore(backup_dir="/tmp/backup")
38
>>> model = keras.models.Sequential([keras.layers.Dense(10)])
39
>>> model.compile(keras.optimizers.SGD(), loss='mse')
40
+ >>> model.build(input_shape=(None, 20))
41
>>> try:
42
... model.fit(np.arange(100).reshape(5, 20), np.zeros(5), epochs=10,
43
... batch_size=1, callbacks=[callback, InterruptingCallback()],
0 commit comments