@Omar2017 i think it is because of the output formats sent to the loss function. Try this:
 features = features.detach().float().cpu().numpy()
 labelVariable=(labelVariable.data).detach().float().cpu().numpy()