感知器-火炬 在Pytorch中实现 (具有迭代注意的一般感知) 安装 $ pip install perceiver-pytorch 用法 import torch from perceiver_pytorch import Perceiver model = Perceiver ( num_fourier_features = 6 , # number of fourier features, with original value (2 * K + 1) depth = 48 , # depth of net, in paper, they went deep, making up for lack of attention num_latents = 6 , # number of latent