Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit f0fe631

Browse files
lgeigerafrozenator
authored andcommitted
ML Engine: Improve logging (#1390)
This adds usefull commands on how to interact with the submitted job to the CLI. Example output: ```shell INFO:tensorflow:Launched shake_shake_image_mnist_t2t_20190121_123909. See console to track: https://console.cloud.google.com/mlengine/jobs/. INFO:tensorflow:Interact with the training job from the command line: INFO:tensorflow:Abort job: gcloud ml-engine jobs cancel shake_shake_image_mnist_t2t_20190121_123909 INFO:tensorflow:Stream logs: gcloud ml-engine jobs stream-logs shake_shake_image_mnist_t2t_20190121_123909 INFO:tensorflow:Open tensorboard: tensorboard --logdir gs://lgeiger-test-bucket/training-test ```
1 parent 32fa402 commit f0fe631

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tensor2tensor/utils/cloud_mlengine.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,7 @@ def launch():
390390
launch_job(job_spec)
391391
tf.logging.info("Launched %s. See console to track: %s.", job_name,
392392
CONSOLE_URL)
393+
tf.logging.info("Interact with the training job from the command line:")
394+
tf.logging.info("Abort job: gcloud ml-engine jobs cancel %s", job_name)
395+
tf.logging.info("Stream logs: gcloud ml-engine jobs stream-logs %s", job_name)
396+
tf.logging.info("Open tensorboard: tensorboard --logdir %s", train_dir)

0 commit comments

Comments
 (0)