lda2vec-pytorch icon indicating copy to clipboard operation
lda2vec-pytorch copied to clipboard

Encounter the problem "IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number".

Open dbl001 opened this issue 6 years ago • 0 comments

Running on GoogleColab. 'Encounter the problem "IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number".' This solution worked for me:

https://github.com/pytorch/pytorch/issues/15585

dbl001 avatar Aug 02 '19 17:08 dbl001