Skip to content

Commit

Permalink
Using a waiter to wait instead of attach
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokiiiiii committed Jun 14, 2022
1 parent 4873fb0 commit ffce787
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,19 @@
"scrolled": true
},
"outputs": [],
"source": [
"waiter = sess.sagemaker_client.get_waiter(\"training_job_completed_or_stopped\")\n",
"\n",
"waiter.wait(TrainingJobName=native_estimator.latest_training_job.name)\n",
"waiter.wait(TrainingJobName=optimized_estimator.latest_training_job.name)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f9217c89",
"metadata": {},
"outputs": [],
"source": [
"native_estimator = TensorFlow.attach(native_estimator.latest_training_job.name)\n",
"optimized_estimator = TensorFlow.attach(optimized_estimator.latest_training_job.name)"
Expand Down

0 comments on commit ffce787

Please sign in to comment.