PyTorch Geometric(PyG) Pooling Layers(TopKPooling)简介
classTopKPooling(in_channels,ratio=0.5,min_score=None,multiplier=1,nonlinearity=)参数:in_channels(int)–输入通道数,也就是x的shape[1].ratio(float)–池化比率,用来计算k=⌈ratio⋅N⌉.如果min_score不是None那么这个值将被忽略.(比率默认:0.5)本文作者注:这个