在python列表中,我们可以使用list.index(somevalue)。 pytorch怎么做到这一点? 例如: a=[1,2,3] print(a.index(2)) 然后,将输出1。 pytorch张量如何在不将其转换 ...
確定! 回上一頁