I'm using the following code to save checkpoints while a google cloud build runs my model:
cp_callback = tf.keras.callbacks.ModelCheckpoint(filepath = "gs://mybucket/checkpoints",
verbose=0,
save_weights_only=True,
monitor='val_loss',
mode='min',
save_best_only=True)
I'm getting no errors in my build logs, but the only thing in the bucket after each run is a tf_cloud_train_tar file containing the source directory contents.
I'm using callbacks = [cp_callback] in model.fit.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…