Skip to content

Commit ff5e05e

Browse files
dzelletensorflower-gardener
authored andcommitted
Check checkpoint_options.checkpoint_dir: it may be unfilled in a caller's checkpoint_options.
PiperOrigin-RevId: 487576430
1 parent 5159259 commit ff5e05e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tensorflow_gnn/runner/trainers/keras_fit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def __init__(
110110

111111
if checkpoint_options is None:
112112
checkpoint_options = KerasTrainerCheckpointOptions()
113+
114+
if checkpoint_options.checkpoint_dir is None:
113115
checkpoint_options.checkpoint_dir = os.path.join(model_dir, "ckpnt")
114116

115117
if backup_dir is None:

0 commit comments

Comments
 (0)