A = t.ones(5) # B仍然是一个Tensor, 只包含一个元素, 也称Scalar B = A[2] # 只包含一个元素的tensor才能使用item函数 # item返回的才是数值 V ...
確定! 回上一頁