Pytorch mat1 and mat2 must have the same dtype mlp
Pytorch mat1 and mat2 must have the same dtype mlp Question: So i am trying to do a function that trains an mlp using PyTorch. My code is as follows : def mlp_gradient_descent(x,y , model , eta = 1e-6 , nb_iter = 30000) : loss_descent = [] dtype = torch.float device = torch.device("cpu") x = …