You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I run the example provided with the following command:
dglke_train
By default, it will use FB15k knowledge graph. However, it seems to construct a graph.HeteroGraph which is not suitable for dgl. Here is the error message:
/somevenv/lib/python3.7/site-packages/dgl/heterograph.py:72: DGLWarning: Recommend creating graphs by `dgl.graph(data)` instead of `dgl.DGLGraph(data)`.
dgl_warning('Recommend creating graphs by `dgl.graph(data)`'
/somevenv/lib/python3.7/site-packages/dgl/heterograph.py:84: DGLWarning: Keyword arguments ['readonly', 'multigraph', 'sort_csr'] are deprecated in v0.5, and can be safely removed in all cases.
' removed in all cases.'.format(list(deprecate_kwargs.keys())))
Traceback (most recent call last):
File "/somevenv/bin/dglke_train", line 8, in <module>
sys.exit(main())
File "/somevenv/lib/python3.7/site-packages/dglke/train.py", line 150, in main
exclude_positive=False)
File "/somevenv/lib/python3.7/site-packages/dglke/dataloader/sampler.py", line 388, in create_sampler
return_false_neg=False)
File "/somevenv/lib/python3.7/site-packages/dgl/contrib/sampling/sampler.py", line 695, in __init__
self._chunk_size)
File "dgl/_ffi/_cython/./function.pxi", line 293, in dgl._ffi._cy3.core.FunctionBase.__call__
File "dgl/_ffi/_cython/./function.pxi", line 239, in dgl._ffi._cy3.core.FuncCall
dgl._ffi.base.DGLError: [17:32:19] /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 trace:
How to solve it?
The text was updated successfully, but these errors were encountered:
Recently, I run the example provided with the following command:
By default, it will use FB15k knowledge graph. However, it seems to construct a graph.HeteroGraph which is not suitable for dgl. Here is the error message:
How to solve it?
The text was updated successfully, but these errors were encountered: