我已经在Pytorch中实现了一个自动编码器,并希望从指定的编码层提取表示(输出)。这种设置类似于使用子模型进行预测,我们过去在Keras中有这样的子模型。然而,在Pytorch中实现类似的东西看起来有点挑战。我尝试了在How to get the output from a specific layer from a PyTorch model?和https://pytorch.org/
我使用的是python 3.8.3版本,我试图安装torchvision和torch模块,但面对这个错误,它们都没有安装。find a version that satisfies the requirement torch==1.4.0(from versions:0.1.2,0.1.2,post1,0.1.2.post2)的形式出现
我试图在conda下安装特定的PyTorch版本:pip3 install pytorch==1.0.1ERROR: Could not find a version that satisfies the requirement pytorch==1.0.1 (from versions: 0.1.2, 1.0.2)
ERROR: No