I have the following error:
~/anaconda3/lib/python3.6/site-packages/torch/nn/modules/linear.py in forward(self, input)
53
54     def forward(self, input):
—> 55         return F.linear(input, self.weight, self.bias)
56
57     def extra_repr(self):
~/anaconda3/lib/python3.6/site-packages/torch/nn/functional.py in linear(input, weight, bias)
990     if input.dim() == 2 and bias is not None:
991         # fused op is marginally faster
–> 992         return torch.addmm(bias, input, weight.t())
993
994     output = input.matmul(weight.t())
RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.cuda.ByteTensor for argument #4 ‘mat1’