Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Yehudit Kerido <[email protected]>
  • Loading branch information
Yehudit Kerido committed Nov 19, 2024
1 parent 5076f8b commit 71ed401
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/v1beta1/sdk/tune-train-from-func.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@
}
],
"source": [
"import time\n",
"time.sleep(120)\n",
"status = katib_client.is_experiment_succeeded(exp_name, namespace=namespace)\n",
"print(f\"Katib Experiment is Succeeded: {status}\\n\")\n",
"\n",
Expand Down Expand Up @@ -511,7 +513,7 @@
"\n",
"# Start TFJob Training.\n",
"tfjob_name = \"train-mnist\"\n",
"tfjob_client = TrainingClient()\n",
"tfjob_client = TrainingClient(namespace=namespace)\n",
"\n",
"#create_tfjob_from_func\n",
"tfjob_client.create_job(\n",
Expand All @@ -521,6 +523,7 @@
" train_func=train_mnist_model,\n",
" parameters=parameters, # Input parameters for the train function.\n",
" num_workers=5, # How many TFJob Workers will be run.\n",
" base_image=\"tensorflow/tensorflow:2.10.0\", # Use TensorFlow image\n",
")"
]
},
Expand Down

0 comments on commit 71ed401

Please sign in to comment.