Solved by ptrblck in post #2 
              
              
                In numpy the flag 'float' corresponds to 'float64' by default. 
You could change the line to: 
label = label.astype('float32')

and run it again.