📅  最后修改于: 2022-03-11 14:55:44.452000             🧑  作者: Mango
# Ùذا Ù
٠اج٠تØÙÙ٠اÙÙ
صÙÙÙÙ Ù
٠اÙÙÙع تÙسÙر اÙÙ Ù
صÙÙÙÙ ÙاÙ
با٠عادÙÙ
# Convert a torch tensor to a numpy array
x = np.array([[1, 2], [3, 4.]])
x
# Convert the numpy array to a torch tensor.
y = torch.from_numpy(x)
y
z = y.numpy()
z