Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
71ccd060
Commit
71ccd060
authored
Jun 19, 2018
by
Mark Daoust
Browse files
Replace string activation with TensoFlow activations.
parent
e06cea86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
175 deletions
+32
-175
samples/core/get_started/custom_training_walkthrough.ipynb
samples/core/get_started/custom_training_walkthrough.ipynb
+32
-175
No files found.
samples/core/get_started/custom_training_walkthrough.ipynb
View file @
71ccd060
...
...
@@ -5,8 +5,6 @@
"colab": {
"name": "custom-training-walkthrough.ipynb",
"version": "0.3.2",
"views": {},
"default_view": {},
"provenance": [],
"private_outputs": true,
"collapsed_sections": [],
...
...
@@ -34,13 +32,7 @@
"metadata": {
"id": "CPII1rGR2rF9",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
},
"cellView": "form"
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -70,10 +62,10 @@
"\n",
"\n",
"<table align=\"left\"><td>\n",
"<a target=\"_blank\" href=\"https://colab.sandbox.google.com/github/tensorflow/models/blob/master/samples/core/get_started/
eager
.ipynb\">\n",
"<a target=\"_blank\" href=\"https://colab.sandbox.google.com/github/tensorflow/models/blob/master/samples/core/get_started/
custom_training_walkthrough
.ipynb\">\n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a> \n",
"</td><td>\n",
"<a target=\"_blank\" href=\"https://github.com/tensorflow/models/blob/master/samples/core/get_started/
eager
.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on Github</a></td></table>\n",
"<a target=\"_blank\" href=\"https://github.com/tensorflow/models/blob/master/samples/core/get_started/
custom_training_walkthrough
.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on Github</a></td></table>\n",
"\n"
]
},
...
...
@@ -145,12 +137,7 @@
"metadata": {
"id": "jBmKxLVy9Uhg",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -177,12 +164,7 @@
"metadata": {
"id": "g4Wzg69bnwK2",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -252,12 +234,7 @@
"metadata": {
"id": "J6c7uEU9rjRM",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -287,12 +264,7 @@
"metadata": {
"id": "FQvb_JYdrpPm",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -323,12 +295,7 @@
"metadata": {
"id": "9Edhevw7exl6",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -364,12 +331,7 @@
"metadata": {
"id": "sVNlJlUOhkoX",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -397,12 +359,7 @@
"metadata": {
"id": "WsxHnz1ebJ2S",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -434,12 +391,7 @@
"metadata": {
"id": "iDuG94H-C122",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -466,12 +418,7 @@
"metadata": {
"id": "me5Wn-9FcyyO",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -502,12 +449,7 @@
"metadata": {
"id": "jm932WINcaGU",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -533,12 +475,7 @@
"metadata": {
"id": "ZbDkzGZIkpXf",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -561,12 +498,7 @@
"metadata": {
"id": "kex9ibEek6Tr",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -627,18 +559,13 @@
"metadata": {
"id": "2fZ6oL2ig3ZK",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
"model = tf.keras.Sequential([\n",
" tf.keras.layers.Dense(10, activation=
\"
relu
\"
, input_shape=(4,)), # input shape required\n",
" tf.keras.layers.Dense(10, activation=
\"
relu
\"
),\n",
" tf.keras.layers.Dense(10, activation=
tf.nn.
relu, input_shape=(4,)), # input shape required\n",
" tf.keras.layers.Dense(10, activation=
tf.nn.
relu),\n",
" tf.keras.layers.Dense(3)\n",
"])"
],
...
...
@@ -673,12 +600,7 @@
"metadata": {
"id": "xe6SQ5NrpB-I",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -704,12 +626,7 @@
"metadata": {
"id": "_tRwHZmTNTX2",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -732,12 +649,7 @@
"metadata": {
"id": "-Jzm_GoErz8B",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -779,12 +691,7 @@
"metadata": {
"id": "tMAT4DcMPwI-",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -813,12 +720,7 @@
"metadata": {
"id": "x57HcKWhKkei",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -868,12 +770,7 @@
"metadata": {
"id": "8xxi2NNGKwG_",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -898,12 +795,7 @@
"metadata": {
"id": "rxRNTFVe56RG",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -945,12 +837,7 @@
"metadata": {
"id": "AIgulGRUhpto",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -1016,12 +903,7 @@
"metadata": {
"id": "agjvNd2iUGFn",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -1101,12 +983,7 @@
"metadata": {
"id": "Ps3_9dJ3Lodk",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -1122,12 +999,7 @@
"metadata": {
"id": "SRMWCu30bnxH",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -1160,12 +1032,7 @@
"metadata": {
"id": "Tw03-MK1cYId",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -1195,12 +1062,7 @@
"metadata": {
"id": "uNwt2eMeOane",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
@@ -1231,12 +1093,7 @@
"metadata": {
"id": "kesTS5Lzv-M2",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
"colab": {}
},
"cell_type": "code",
"source": [
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment