摘要:
import torch as th import dgl g=dgl.DGLGraph() g.add_nodes(3) g.ndata["x"]=th.ones(3,4) #number of features to match number of nodes print("nodes",g.nodes()) print("ndata",g.ndata["x"]) #increment... 阅读全文
posted @ 2019-09-25 19:32
happygril3
阅读(302)
评论(0)
推荐(0)

浙公网安备 33010602011771号