import numpy as np a = np.ones(5) b = torch.from_numpy(a) np.add(a, 1, out=a) print(a) print(b) print(a)
a = torch.ones(5) print(a)b = a.numpy()print(b)
a = torch.ones(5) print(a)
b = a.numpy()
print(b)