data =[-1,-2,1,2]
tensor = torch.FloatTensor(data)print('\nabs''\nnumpy_abs',np.abs(data),'\ntorch_abs',torch.abs(tensor),)print('\nsin','\nnumpy_sin',np.sin(data),'\ntorch_sin',torch.sin(tensor),)print('\nmean''\nnumpy_mean',np.mean(data),'\ntorch_mean',torch.mean(tensor),)