Add .pt file extension as PyTorch

Usually `.pt` is used as pytorch's extension, see [this StackOverflow question](https://stackoverflow.com/questions/59095824/what-is-difference-between-pt-pth-and-pwf-extentions-in-pytorch).

Furthermore `.pth` is used by Python to list additional package search paths (see [this PyTorch issue](https://github.com/pytorch/pytorch/issues/14864)) so IMO it might be worth reconsidering existence of it extension. AFAIK `.pt` is advised and used throughout most projects.
This commit is contained in:
Szymon Maszke 2020-01-06 13:08:54 +01:00 committed by GitHub
parent 54ae340ccb
commit 6815dd5410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,7 @@ class Framework(Options):
'model.json': (tensorflowjs, ),
'.tflite': (tensorflowlite, ),
'.pth': (pytorch, ),
'.pt': (pytorch, ),
'.caffemodel': (caffe, ),
'.prototxt': (caffe, ),
'predict_net.pb': (caffe2, ),