Skip to content

Commit 1540271

Browse files
authored
Fixed noise() cuda return
1 parent 99ae688 commit 1540271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1. Vanilla GAN PyTorch.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"# Noise\n",
182182
"def noise(size):\n",
183183
" n = Variable(torch.randn(size, 100))\n",
184-
" if torch.cuda.is_available(): return n.cuda \n",
184+
" if torch.cuda.is_available(): return n.cuda() \n",
185185
" return n"
186186
]
187187
},

0 commit comments

Comments
 (0)