Just to add to the answer, by default, pytorch creates float tensors (which have ~7 digit precision during operations).
If you would like to have more precision, convert the data to double before performing the operation.