Remove unused import and use /gcs path instead of gs://

main
Aurélien Geron 2022-04-18 10:45:53 +12:00
parent e611c9bcf0
commit f148784e14
1 changed files with 1 additions and 3 deletions

View File

@ -2113,7 +2113,6 @@
"source": [
"%%writefile my_mnist_multiworker_task.py\n",
"\n",
"from pathlib import Path\n",
"import tempfile\n",
"import tensorflow as tf\n",
"\n",
@ -2455,8 +2454,7 @@
"import keras_tuner as kt\n",
"import tensorflow as tf\n",
"\n",
"gcs_path = \"gs://my_bucket/my_hp_search\"\n",
"gcs_path = gcs_path.replace(\"gs://\", \"/gcs/\") # uses GCS Fuse\n",
"gcs_path = \"/gcs/my_bucket/my_hp_search\" # replace with your bucket's name\n",
"\n",
"def build_model(hp):\n",
" n_hidden = hp.Int(\"n_hidden\", min_value=0, max_value=8, default=2)\n",