def__init__(self,in_feats,out_feats,aggregator_type,feat_drop=0.,bias=True,norm=None,activation=None):super(SAGEConv,self).__init__()# 调用expand_as_pair,如果in_feats是tuple直接返回;# 如果in_feats是int,则返回两相同此int值,分别代表源、目标节点特征维度。(同构图情形)self._in_src_feats...
self.activation = activation# aggregator type: mean/pool/lstm/gcnifaggregator_type =='pool': self.fc_pool = nn.Linear(self._in_src_feats, self._in_src_feats)ifaggregator_type =='lstm': self.lstm = nn.LSTM(self._in_src_feats, self._in_src_feats, batch_first=True)ifaggregator_type...