Solved by ptrblck in post #2 
              
              
                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.DataFram…