0
1-D IntTensor를 얻지 만 정수로 변환하고 싶습니다. 나는이 방법으로 그것을 시도 :Pytorch에서 int로 1-d IntTensor를 캐스팅하는 방법
print(dictionary[IntTensor.int()])
하지만 오류가있어 :
KeyError: Variable containing:
423
[torch.IntTensor of size 1]
감사합니다 ~를
감사합니다. 작동합니다. – Ruben