Skip to content

Commit a43fcfc

Browse files
Merge pull request #108 from RenuPatelGoogle:patch-1
PiperOrigin-RevId: 419645420
2 parents 06fc0be + 4ae8de3 commit a43fcfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

g3doc/tutorials/adversarial_keras_cnn_mnist.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@
759759
" y_adv = batch_pred['adv-regularized'][i]\n",
760760
" plt.subplot(n_row, n_col, i+1)\n",
761761
" plt.title('true: %d, base: %d, adv: %d' % (y, y_base, y_adv))\n",
762-
" plt.imshow(tf.keras.preprocessing.image.array_to_img(image), cmap='gray')\n",
762+
" plt.imshow(tf.keras.utils.array_to_img(image), cmap='gray')\n",
763763
" plt.axis('off')\n",
764764
"\n",
765765
"plt.show()"

0 commit comments

Comments
 (0)