I have a tensor 'a' of shape [4,3,3]
a = [[[ 1 2 3]
[ 4 5 6]
[ 1 3 4]]
[[ 7 8 9]
[10 11 12]
[ 6 56 76]]
[[13 14 15]
[16 17 18]
[87 90 45]]
[[19 20 21]
[22 23 24]
[23 33 1]]]
i want to reshape it to [3,4,3] but values should be as given bellow
final = [[[ 1 2 3]
[ 7 8 9]
[13 14 15]
[19 20 21]]
[[ 4 5 6]
[10 11 12]
[16 17 18]
[22 23 24]]
[[ 1 3 4]
[ 6 56 76]
[87 90 45]
[23 33 1]]]
Seems tf.reshape([-1, 4,3]) will give me that shape but result is completely different to final
. i was wondering is there any way i could achieve it?