Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
1202kbs committed Jan 30, 2018
1 parent 3a974dc commit 9b45c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 3.1 Deconvolution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@
"source": [
"tf.reset_default_graph()\n",
"\n",
"@ops.RegisterGradient(\"GuidedRelu\")\n",
"def _GuidedReluGrad(op, grad):\n",
"@ops.RegisterGradient(\"DeconvRelu\")\n",
"def _DeconvReluGrad(op, grad):\n",
" return tf.where(0. < grad, grad, tf.zeros(tf.shape(grad)))\n",
"\n",
"sess = tf.InteractiveSession()\n",
"\n",
"g = tf.get_default_graph()\n",
"with g.gradient_override_map({'Relu': 'GuidedRelu'}):\n",
"with g.gradient_override_map({'Relu': 'DeconvRelu'}):\n",
" new_saver = tf.train.import_meta_graph(ckptdir + '.meta')\n",
"\n",
"new_saver.restore(sess, tf.train.latest_checkpoint(logdir))\n",
Expand Down

0 comments on commit 9b45c57

Please sign in to comment.