Monday 21 October 2019

torch - convert a tensor to numpy

Converting a Torch Tensor to a NumPy Array ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tensor([1., 1., 1., 1., 1.])
[1. 1. 1. 1. 1.]
See how the numpy array changed in value.

No comments:

Post a Comment