GLRE icon indicating copy to clipboard operation
GLRE copied to clipboard

关于 python scripts/run_cdr.py

Open wy11002299 opened this issue 3 years ago • 2 comments

微信图片_20220124013615 在执行这个文件的时候,denom = torch.sparse.sum(adj[batch, i], dim=1).to_dense()这一句代码报错。 RuntimeError: sparse tensors do not have strides是什么原因呢?需要怎样进行修改?谢谢

wy11002299 avatar Jan 23 '22 17:01 wy11002299

抱歉,我们重新下载和按顺序执行了提供的代码,并未发现这样的错误,你是否对提供的代码进行了一定的修改,或者你能提供下运行的环境吗?我们在给定的运行环境下能成功地运行。

njuxinyiwang avatar Jan 25 '22 03:01 njuxinyiwang

FileNotFoundError: [Errno 2] No such file or directory: './data/CDR/PubMed-CDR.txt' 上述txt文件从哪里获取啊?

shiqqaingzhu avatar Jun 28 '24 08:06 shiqqaingzhu