torch.nn.CosineSimilarity --> IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

前端 未结 0 1855
广开言路
广开言路 2020-11-30 01:29

I have the following code and I am trying to extract a 2048 dimension vector from the pretrained resnet50 network.

import torch
import torchvision
import torc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题