Im stuck with how to transform a (1000,1,17) tensor into (1000,17) tensor.
What Im trying with sofar is
If you wanted to do it through
reshape, it'd be
You just pass in the new shape. I have no idea why you were trying to use
transpose or passing
-1 as arguments. The docs are pretty clear.
reshape, it'd probably be easier to index away the length-1 dimension:
The reverse would be
arr.reshape([1000, 1, 17])
np.squeeze, which gives a view of an array with all length-1 dimensions removed, but that can remove more dimensions than you really want.