Skip to content

Commit

Permalink
Update deepdream.ipynb (tensorflow#7771)
Browse files Browse the repository at this point in the history
Gives an error saying it can take only one argument so removed 'utf-8', which solves the problem
  • Loading branch information
gautam1858 authored and jhseu committed Mar 14, 2017
1 parent f31606b commit ed1a779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/examples/tutorials/deepdream/deepdream.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
" tensor = n.attr['value'].tensor\n",
" size = len(tensor.tensor_content)\n",
" if size > max_const_size:\n",
" tensor.tensor_content = bytes(\"<stripped %d bytes>\"%size, 'utf-8')\n",
" tensor.tensor_content = bytes(\"<stripped %d bytes>\"%size)\n",
" return strip_def\n",
" \n",
"def rename_nodes(graph_def, rename_func):\n",
Expand Down

0 comments on commit ed1a779

Please sign in to comment.