Your code is not wrong. torch::nonzero has to check every entry in the tensor you give it, in this case 30000*80=2.4e+6 .
確定! 回上一頁