Unable to get repr for<class‘torch.Tensor‘>

  Unable to get repr for <class 'torch.Tensor'>python   tensor越界訪問後就會變成這樣。code import torch a_data=torch.Tensor([1,2,3]) index=[0,1,1,2,1] ba=a_data[index] print(ba) labels[[0,5]]get
相關文章
相關標籤/搜索