![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Bug
文章平均质量分 57
本专栏专门用于整理在跑实验时出现的bug。
lllllli_forever
这个作者很懒,什么都没留下…
展开
-
NotImplementedError: Could not run ‘aten::is_coalesced‘ with arguments from the ‘CPU‘ backend.
发现问题:使用coalesced时需要稀疏矩阵,而我输入的是稠密矩阵,需要将adj转换一下。原创 2024-03-14 11:37:16 · 1720 阅读 · 0 评论 -
AttributeError: ‘GCNConv‘ object has no attribute ‘total_ops‘
先说一下,我踩过的坑:刚开始参照网上说的,应该是环境问题,就试过好几个版本的环境,倒是花了一天时间,仍然出现这个问题,心都碎了,还把原始虚拟环境搞得稀烂,哈哈哈哈~在utils.py中修改一下dfs_count函数,将total_ops定义进去,完美解决问题。原创 2024-03-14 10:26:47 · 709 阅读 · 0 评论 -
usage: preprocess.py [-h] --config CONFIGpreprocess.py: error: the following arguments are required
preprocess.py: error: the following arguments are required: --config”的错误!使用了网上大多数常见的修改方法(如下所示),但是还是没有解决我的问题。输入命令“Python preprocess.py --config ./config/yelp_preprocess.yml”,成功解决这个bug!在复现代码的时候,直接用Python命令运行,出现了“usage: preprocess.py [-h] --config CONFIG。原创 2023-03-27 19:46:35 · 1308 阅读 · 1 评论