What is the difference between the .t7 format and .pth format for saving a model, and more specifically, which is better?

Hi guys,
I am training a model these days, and I find that there is another format of .t7 for saving a model.
So, I am wondering what is the difference between the .t7 format and .pth format for saving a model, and more specifically, which would be a better choice?

Your answer and idea will be appreciated!

1 Like

.t7 was used in Torch7 and is not used in PyTorch. If Iā€™m not mistaken the file extension does not change the behavior of torch.save.

2 Likes