Solved by SimonW in post #2 
              
              
                Maybe you are looking for np.transpose(output, [1, 2 ,0])… But It seems that you are not fwding through the model, so I’m not sure what you want to do with output.