Skip to content

Commit b32a265

Browse files
committed
update tensorflow 1.13 version
1 parent 383219e commit b32a265

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

lab-06-2-softmax_zoo_classifier-eager.ipynb

+30-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,23 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 2,
16+
"execution_count": 1,
1717
"metadata": {},
18-
"outputs": [],
18+
"outputs": [
19+
{
20+
"name": "stdout",
21+
"output_type": "stream",
22+
"text": [
23+
"\n",
24+
"WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.\n",
25+
"For more information, please see:\n",
26+
" * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md\n",
27+
" * https://github.com/tensorflow/addons\n",
28+
"If you depend on functionality not listed there, please file an issue.\n",
29+
"\n"
30+
]
31+
}
32+
],
1933
"source": [
2034
"import tensorflow as tf\n",
2135
"import numpy as np\n",
@@ -26,7 +40,7 @@
2640
},
2741
{
2842
"cell_type": "code",
29-
"execution_count": 3,
43+
"execution_count": 15,
3044
"metadata": {},
3145
"outputs": [
3246
{
@@ -38,7 +52,7 @@
3852
}
3953
],
4054
"source": [
41-
"xy = np.loadtxt('data-04-zoo.csv', delimiter=',', dtype=np.float32)\n",
55+
"xy = np.loadtxt('data-04-zoo.csv', delimiter=',', dtype=np.int32) #tf1.13.1에서는 np.int32, 이전에는 np.float32\n",
4256
"x_data = xy[:, 0:-1]\n",
4357
"y_data = xy[:, [-1]]\n",
4458
"\n",
@@ -137,6 +151,18 @@
137151
"display_name": "Python 3",
138152
"language": "python",
139153
"name": "python3"
154+
},
155+
"language_info": {
156+
"codemirror_mode": {
157+
"name": "ipython",
158+
"version": 3
159+
},
160+
"file_extension": ".py",
161+
"mimetype": "text/x-python",
162+
"name": "python",
163+
"nbconvert_exporter": "python",
164+
"pygments_lexer": "ipython3",
165+
"version": "3.6.5"
140166
}
141167
},
142168
"nbformat": 4,

0 commit comments

Comments
 (0)