在Deep Graph Library(dgl)使用中可能会出现以下错误问题:
dgl._ffi.base.DGLError: [17:28:06] /opt/dgl/include/dgl/packed_func_ext.h:117: Check failed: ObjectTypeChecker<TObjectRef>::Check(sptr.get()): Expected type graph.Graph but get graph.HeteroGraph Stack tracek
解决:可以替换graph.Graph接口,或者降低版本,如安装dgl==0.4.3.post2
pip install dgl==0.4.3.post2