Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Tensor' object has no attribute 'coo'. Did you mean: 'cos'? #13

Open
RongxuanLai opened this issue Jun 11, 2024 · 0 comments

Comments

@RongxuanLai
Copy link

运行./data/arxiv/sample_neighbor.py脚本,报错如下:

Traceback (most recent call last):
  File "C:\Program Files (x86)\PyCharm 2023.1.4\plugins\python\helpers\pydev\pydevd.py", line 1527, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:\Program Files (x86)\PyCharm 2023.1.4\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "E:\PythonProjects\GraphTranslator\data\arxiv\sample_neighbor.py", line 17, in <module>
    row = dataset[0].adj_t.coo()[0]
AttributeError: 'Tensor' object has no attribute 'coo'. Did you mean: 'cos'?

看这意思应该是稀疏矩阵转coo格式时函数调用出错,可否看看怎么改?谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant