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

你好,能否请教你一个问题

Open tantingting1012 opened this issue 5 years ago • 0 comments

运行出错,能麻烦您看一下吗 Traceback (most recent call last): File "cw2vec.py", line 172, in w2v.train() File "cw2vec.py", line 137, in train neg_v) File "/home/mere/桌面/cw2vec-pytorch/skip_gram.py", line 71, in forward log_target = (emb_u * emb_v).sum(1).squeeze().sigmoid().log() IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1) 0it [00:00, ?it/s]

tantingting1012 avatar Nov 09 '19 08:11 tantingting1012