- import numpy as np
- x = np.arange(24).reshape((2,3,4))
- print(x)
- print(x.transpose((1,0,2))) # shape(3,2,4)
- [[[ 0 1 2 3]
- [ 4 5 6 7]
- [ 8 9 10 11]]
- [[12 13 14 15]
- [16 17 18 19]
- [20 21 22 23]]]
- [[[ 0 1 2 3]
- [12 13 14 15]]
- [[ 4 5 6 7]
- [16 17 18 19]]
- [[ 8 9 10 11]
- [20 21 22 23]]]


雷达卡





京公网安备 11010802022788号







