lda2vec-pytorch
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".
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