Remove unused import and use /gcs path instead of gs://
parent
e611c9bcf0
commit
f148784e14
|
@ -2113,7 +2113,6 @@
|
||||||
"source": [
|
"source": [
|
||||||
"%%writefile my_mnist_multiworker_task.py\n",
|
"%%writefile my_mnist_multiworker_task.py\n",
|
||||||
"\n",
|
"\n",
|
||||||
"from pathlib import Path\n",
|
|
||||||
"import tempfile\n",
|
"import tempfile\n",
|
||||||
"import tensorflow as tf\n",
|
"import tensorflow as tf\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -2455,8 +2454,7 @@
|
||||||
"import keras_tuner as kt\n",
|
"import keras_tuner as kt\n",
|
||||||
"import tensorflow as tf\n",
|
"import tensorflow as tf\n",
|
||||||
"\n",
|
"\n",
|
||||||
"gcs_path = \"gs://my_bucket/my_hp_search\"\n",
|
"gcs_path = \"/gcs/my_bucket/my_hp_search\" # replace with your bucket's name\n",
|
||||||
"gcs_path = gcs_path.replace(\"gs://\", \"/gcs/\") # uses GCS Fuse\n",
|
|
||||||
"\n",
|
"\n",
|
||||||
"def build_model(hp):\n",
|
"def build_model(hp):\n",
|
||||||
" n_hidden = hp.Int(\"n_hidden\", min_value=0, max_value=8, default=2)\n",
|
" n_hidden = hp.Int(\"n_hidden\", min_value=0, max_value=8, default=2)\n",
|
||||||
|
|
Loading…
Reference in New Issue