a=[1,2,3] print(a.index(2)). Then, 1 will be output. How can a pytorch tensor do this without converting it to a python list? Asked By: Han Bing.
確定! 回上一頁