numpy() 与.item()这两个可以归为一类,是将Tensor变量转换为非Tensor变量。t.numpy()将Tensor变量转换为ndarray变量,其中t是一个Tensor变量, ...
確定! 回上一頁