tensor([[17, 0],
[93, 0],
[ 4, 0],
[72, 0],
[83, 0],
[67, 0],
[34, 0],
[21, 0],
[19, 0])
I want to remove 0 from this tensor, which is a two-dimensional array, and make it a one-dimensional array.
How can I make this tensor with the tensor below?
tensor([[17],
[93],
[4],
[72],
[83],
[67],
[34],
[21],
[19])