Depending how the results should be stored you could:

store the print output in a text file using plain open() calls and append the strings,
store the tensors via torch.save()

transform the tensors to numpy arrays via tensor.numpy() and either store it using a numpy method or create a pd.DataFrame using pandas, which would also allow you to create Excel sheets and other formats.