If I understand it correctly, you are saving some intermediate value for inspection later, right? If that is the case, make sure that you save the raw data, as opposed to saving the Variable.
For example, if you wan to record total_loss of the epoch, after each batch, you should use total_loss += loss.data[0] (loss is the loss calculated for a batch)  instead of total_loss += loss.