Skip to content

Commit 7f58d32

Browse files
committed
init: Return status of restore
1 parent e1a0a9c commit 7f58d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ def restore(self, path, optim=None):
121121
if optim is not None:
122122
kwargs['optim'] = optim
123123
ckpt = tf.train.Checkpoint(**kwargs)
124-
ckpt.restore(path)
124+
return ckpt.restore(path)

0 commit comments

Comments
 (0)