import torch
import numpy as np
num_input = 2
num_example = 1000
true_w = np.array([2, -3.4])
true_b = 4.2

features = torch.normal(torch.zeros(num_example, num_input), 1).float()
w = torch.tensor([true_w]).t()

Xw = features.mm(w)



I run the code in Pycharm, get the error:
RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat2’
So I want to know whether two tensors( features and w )with different dtype can multiply？