Skip to content

Commit ed1a779

Browse files
gautam1858jhseu
authored andcommitted
Update deepdream.ipynb (tensorflow#7771)
Gives an error saying it can take only one argument so removed 'utf-8', which solves the problem
1 parent f31606b commit ed1a779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/examples/tutorials/deepdream/deepdream.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
" tensor = n.attr['value'].tensor\n",
279279
" size = len(tensor.tensor_content)\n",
280280
" if size > max_const_size:\n",
281-
" tensor.tensor_content = bytes(\"<stripped %d bytes>\"%size, 'utf-8')\n",
281+
" tensor.tensor_content = bytes(\"<stripped %d bytes>\"%size)\n",
282282
" return strip_def\n",
283283
" \n",
284284
"def rename_nodes(graph_def, rename_func):\n",

0 commit comments

Comments
 (0)