I also ran into this when trying to train signMNIST ... the problem was in my code .. the training labels were being passed in as an array of strings .. whereas they should have been an array of int's ...