Try changing the input tensor X to type float. Something like this:
x = torch.tensor([44.,76.,57.,...,21.,68.,46.], dtype=torch.float32)

Could you also copy and paste what the full error - that has information on which line of code is giving - is? (full traceback of error is better)