Skip to content

Commit 930ee6a

Browse files
Merge pull request yandexdataschool#64 from NickVeld/patch-18
week9:1d_gan_pytorch scalar tensor is not "[ x ]" now
2 parents 5ff92e2 + 61b71e8 commit 930ee6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

week09_adversarial/simple_1d_gan_pytorch.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
" disc_opt.zero_grad()\n",
8282
" disc_loss.backward()\n",
8383
" disc_opt.step()\n",
84-
" return disc_loss.data.numpy()[0]"
84+
" return disc_loss.data.numpy()"
8585
]
8686
},
8787
{
@@ -106,7 +106,7 @@
106106
" gen_opt.zero_grad()\n",
107107
" gen_loss.backward()\n",
108108
" gen_opt.step()\n",
109-
" return gen_loss.data.numpy()[0]"
109+
" return gen_loss.data.numpy()"
110110
]
111111
},
112112
{

0 commit comments

Comments
 (0)