AttributeError: module 'dgl.function' has no attribute 'copy_src'

发布时间 2023-05-06 00:00:02作者: 化繁为简,弃快从慢

报错:

AttributeError: module 'dgl.function' has no attribute 'copy_src'

错误解析:

copy_src(来源,输出)
使用源节点功能计算消息的内置消息函数。

这个函数在包里面没有,本应该是有这个功能函数的

解决方法:

自己构造一个对应的函数,设立在__init___.py中去