If you have a 1d tensor, you can access the first element with : my_tensor[0].item(). If your tensor is higher dimensional, you will need to ...
確定! 回上一頁