Hello. I want my as output same as tensorflow output, but i’m unable to figuring out how array behaves? Why np.array perform the same way as in tensorflow and what is the difference between the output of tensorflow and pytorch, desdpite that both are tensors with dim = 10? Is there any other thing which i’m doing wrong

output.png773×486 15.2 KB

tensorflow output = [1. 2. 3. 4. 5. 6. 7. 8. 9. 10.]
pytorch output = [1., 2., 3., 4., 5., 6., 7., 8., 9., 10.]