Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39d9d0e

Browse files
authored
Update convolutional_network_raw.ipynb (aymericdamien#366)
1 parent c577281 commit 39d9d0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_v2/notebooks/3_NeuralNetworks/convolutional_network_raw.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
" loss = cross_entropy(pred, y)\n",
218218
" \n",
219219
" # Variables to update, i.e. trainable variables.\n",
220-
" trainable_variables = weights.values() + biases.values()\n",
220+
" trainable_variables = list(weights.values()) + list(biases.values())\n",
221221
"\n",
222222
" # Compute gradients.\n",
223223
" gradients = g.gradient(loss, trainable_variables)\n",

0 commit comments

Comments
 (0)