From b02e61f67211c90a74aaf5f45f0d015d7973aec0 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Mon, 26 Oct 2020 12:19:03 -0700 Subject: [PATCH] [minor] fix up docs (#11596) Signed-off-by: Richard Liaw --- doc/source/tune/api_docs/trainable.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/tune/api_docs/trainable.rst b/doc/source/tune/api_docs/trainable.rst index 492639400..8c2b3af32 100644 --- a/doc/source/tune/api_docs/trainable.rst +++ b/doc/source/tune/api_docs/trainable.rst @@ -115,7 +115,7 @@ Many Tune features rely on checkpointing, including the usage of certain Trial S for iter in range(start, 100): time.sleep(1) - with tune.checkpoint_dir(step=step): + with tune.checkpoint_dir(step=step) as checkpoint_dir: path = os.path.join(checkpoint_dir, "checkpoint") with open(path, "w") as f: f.write(json.dumps({"step": start}))