提交 05c356e5 编写于 作者: Y Yelrose

fixed pgl for pslib; fixed example in citation_network

上级 a4f898a5
......@@ -836,11 +836,12 @@ class BatchGraphWrapper(BaseGraphWrapper):
def __build_edges(self, edges, node_shift, edge_lod):
""" Merge subgraph edges.
"""
if len(edges) == 2:
if isinstance(edges, tuple):
src, dst = edges
else:
src = edges[:, 0]
dst = edges[:, 1]
src = L.reshape(src, [-1])
dst = L.reshape(dst, [-1])
src = paddle_helper.ensure_dtype(src, dtype="int32")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册