Skip to content

Commit 8e466db

Browse files
committed
Update nbformat_minor
1 parent ee7de40 commit 8e466db

2 files changed

+46
-46
lines changed

17_autoencoders_and_gans.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"from tensorflow import keras\n",
6666
"assert tf.__version__ >= \"2.0\"\n",
6767
"\n",
68-
"if not tf.test.is_gpu_available():\n",
68+
"if not tf.config.list_physical_devices('GPU'):\n",
6969
" print(\"No GPU was detected. LSTMs and CNNs can be very slow without a GPU.\")\n",
7070
" if IS_COLAB:\n",
7171
" print(\"Go to Runtime > Change runtime and select a GPU hardware accelerator.\")\n",
@@ -4680,7 +4680,7 @@
46804680
"name": "python",
46814681
"nbconvert_exporter": "python",
46824682
"pygments_lexer": "ipython3",
4683-
"version": "3.7.3"
4683+
"version": "3.7.6"
46844684
},
46854685
"nav_menu": {
46864686
"height": "381px",
@@ -4697,5 +4697,5 @@
46974697
}
46984698
},
46994699
"nbformat": 4,
4700-
"nbformat_minor": 1
4700+
"nbformat_minor": 4
47014701
}

19_training_and_deploying_at_scale.ipynb

+43-43
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"from tensorflow import keras\n",
6464
"assert tf.__version__ >= \"2.0\"\n",
6565
"\n",
66-
"if not tf.test.is_gpu_available():\n",
66+
"if not tf.config.list_physical_devices('GPU'):\n",
6767
" print(\"No GPU was detected. CNNs can be very slow without a GPU.\")\n",
6868
" if IS_COLAB:\n",
6969
" print(\"Go to Runtime > Change runtime and select a GPU hardware accelerator.\")\n",
@@ -285,8 +285,8 @@
285285
"name": "stdout",
286286
"output_type": "stream",
287287
"text": [
288-
"The given SavedModel contains the following tag-sets:\r\n",
289-
"serve\r\n"
288+
"The given SavedModel contains the following tag-sets:\n",
289+
"serve\n"
290290
]
291291
}
292292
],
@@ -303,9 +303,9 @@
303303
"name": "stdout",
304304
"output_type": "stream",
305305
"text": [
306-
"The given SavedModel MetaGraphDef contains SignatureDefs with the following keys:\r\n",
307-
"SignatureDef key: \"__saved_model_init_op\"\r\n",
308-
"SignatureDef key: \"serving_default\"\r\n"
306+
"The given SavedModel MetaGraphDef contains SignatureDefs with the following keys:\n",
307+
"SignatureDef key: \"__saved_model_init_op\"\n",
308+
"SignatureDef key: \"serving_default\"\n"
309309
]
310310
}
311311
],
@@ -322,17 +322,17 @@
322322
"name": "stdout",
323323
"output_type": "stream",
324324
"text": [
325-
"The given SavedModel SignatureDef contains the following input(s):\r\n",
326-
" inputs['flatten_2_input'] tensor_info:\r\n",
327-
" dtype: DT_FLOAT\r\n",
328-
" shape: (-1, 28, 28, 1)\r\n",
329-
" name: serving_default_flatten_2_input:0\r\n",
330-
"The given SavedModel SignatureDef contains the following output(s):\r\n",
331-
" outputs['dense_5'] tensor_info:\r\n",
332-
" dtype: DT_FLOAT\r\n",
333-
" shape: (-1, 10)\r\n",
334-
" name: StatefulPartitionedCall:0\r\n",
335-
"Method name is: tensorflow/serving/predict\r\n"
325+
"The given SavedModel SignatureDef contains the following input(s):\n",
326+
" inputs['flatten_2_input'] tensor_info:\n",
327+
" dtype: DT_FLOAT\n",
328+
" shape: (-1, 28, 28, 1)\n",
329+
" name: serving_default_flatten_2_input:0\n",
330+
"The given SavedModel SignatureDef contains the following output(s):\n",
331+
" outputs['dense_5'] tensor_info:\n",
332+
" dtype: DT_FLOAT\n",
333+
" shape: (-1, 10)\n",
334+
" name: StatefulPartitionedCall:0\n",
335+
"Method name is: tensorflow/serving/predict\n"
336336
]
337337
}
338338
],
@@ -350,30 +350,30 @@
350350
"name": "stdout",
351351
"output_type": "stream",
352352
"text": [
353-
"\r\n",
354-
"MetaGraphDef with tag-set: 'serve' contains the following SignatureDefs:\r\n",
355-
"\r\n",
356-
"signature_def['__saved_model_init_op']:\r\n",
357-
" The given SavedModel SignatureDef contains the following input(s):\r\n",
358-
" The given SavedModel SignatureDef contains the following output(s):\r\n",
359-
" outputs['__saved_model_init_op'] tensor_info:\r\n",
360-
" dtype: DT_INVALID\r\n",
361-
" shape: unknown_rank\r\n",
362-
" name: NoOp\r\n",
363-
" Method name is: \r\n",
364-
"\r\n",
365-
"signature_def['serving_default']:\r\n",
366-
" The given SavedModel SignatureDef contains the following input(s):\r\n",
367-
" inputs['flatten_2_input'] tensor_info:\r\n",
368-
" dtype: DT_FLOAT\r\n",
369-
" shape: (-1, 28, 28, 1)\r\n",
370-
" name: serving_default_flatten_2_input:0\r\n",
371-
" The given SavedModel SignatureDef contains the following output(s):\r\n",
372-
" outputs['dense_5'] tensor_info:\r\n",
373-
" dtype: DT_FLOAT\r\n",
374-
" shape: (-1, 10)\r\n",
375-
" name: StatefulPartitionedCall:0\r\n",
376-
" Method name is: tensorflow/serving/predict\r\n"
353+
"\n",
354+
"MetaGraphDef with tag-set: 'serve' contains the following SignatureDefs:\n",
355+
"\n",
356+
"signature_def['__saved_model_init_op']:\n",
357+
" The given SavedModel SignatureDef contains the following input(s):\n",
358+
" The given SavedModel SignatureDef contains the following output(s):\n",
359+
" outputs['__saved_model_init_op'] tensor_info:\n",
360+
" dtype: DT_INVALID\n",
361+
" shape: unknown_rank\n",
362+
" name: NoOp\n",
363+
" Method name is: \n",
364+
"\n",
365+
"signature_def['serving_default']:\n",
366+
" The given SavedModel SignatureDef contains the following input(s):\n",
367+
" inputs['flatten_2_input'] tensor_info:\n",
368+
" dtype: DT_FLOAT\n",
369+
" shape: (-1, 28, 28, 1)\n",
370+
" name: serving_default_flatten_2_input:0\n",
371+
" The given SavedModel SignatureDef contains the following output(s):\n",
372+
" outputs['dense_5'] tensor_info:\n",
373+
" dtype: DT_FLOAT\n",
374+
" shape: (-1, 10)\n",
375+
" name: StatefulPartitionedCall:0\n",
376+
" Method name is: tensorflow/serving/predict\n"
377377
]
378378
}
379379
],
@@ -1677,9 +1677,9 @@
16771677
"name": "python",
16781678
"nbconvert_exporter": "python",
16791679
"pygments_lexer": "ipython3",
1680-
"version": "3.7.3"
1680+
"version": "3.7.6"
16811681
}
16821682
},
16831683
"nbformat": 4,
1684-
"nbformat_minor": 2
1684+
"nbformat_minor": 4
16851685
}

0 commit comments

Comments
 (0)