You can use x.item() to get a Python number from a tensor that has one element Convert tensor to numpy: x.numpy()[0] To get a value from single element ...
確定! 回上一頁