Solved by ptrblck in post #4 
              
              
                Where did you modify the code? In your first post or the github repo? 
I’m not sure about this line: 
label = label[:, :, np.newaxis]

Are you trying to add a batch dimension to your target? 
If so, the batch dimension should be at dim0, i.e. the first dimension. 
Make sure your label is of type lon…