Skip to content

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

Description

@yurakuratov

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.

Activity

  1. added a commit that references this issue on Mar 24, 2021
    f1efeec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions