本文参考自datawhale2021.6学习:图神经网络
PyG的安装:Installation of of PyTorch Geometric
1 Data类:PyG中的图
1.1 属性和方法
- 定义:这里只定义了4个属性;指定额外参数可以使data类有其他属性
class Data(object):
def __init__(self, x=None, edge_index=None, edge_attr=None, y
本文参考自datawhale2021.6学习:图神经网络
PyG的安装:Installation of of PyTorch Geometric
class Data(object):
def __init__(self, x=None, edge_index=None, edge_attr=None, y