# 需要导入模块: from torch_geometric import utils [as 别名]# 或者: from torch_geometric.utils importremove_self_loops[as 别名]def__call__(self, data):edge_index, edge_attr = data.edge_index, data.edge_attr N = data.num_nodes value = edge_index.new_ones((edge_index.size(1), ), ...
remove self loops in a graphLi Long