I don’t think the model’s parameters are initialized to long, but rather the input.
torch.from_numpy() respects the data type passed to this method and often we see issues, when the original numpy array contained int values.