DeepPavlov icon indicating copy to clipboard operation
DeepPavlov copied to clipboard

TorchModel typing for fname argument in save is str, but is used as pathlib.PosixPath

Open yurakuratov opened this issue 3 years ago • 0 comments

fname argument of TorchModel.save() is expected to be str, but is actually used as pathlib.PosixPath https://github.com/deepmipt/DeepPavlov/blob/master/deeppavlov/core/models/torch_model.py#L172

Support, please, both types of arguments or fix typing.

yurakuratov avatar Mar 24 '21 15:03 yurakuratov