以下のエラーの解決策を教えてください。初心者のため質問の仕方が下手で申し訳ありませんが、よろしくお願いいたします。
Traceback (most recent call last):
File "train_pytorch.py", line 177, in <module>
gan_images = generator(z, utils.pytorch.one_hot(y))
File "C:\Users\user\GANalyze\pytorch\utils\pytorch.py", line 6, in one_hot
output.scatter_(1, index.unsqueeze(-1), 1)
RuntimeError: Expected object of scalar type Long but got scalar type Int for argument #3 'index
あなたの回答
tips
プレビュー