Skip to content

Torch container save functionality OSError - file exists #805

@ksid-99

Description

@ksid-99

Getting the following error when trying to save a xgboost -> pytorch converted model
Model saved with digest: 309db017069e113ef33ba5f36e1891a8d3ae0207 *** OSError: [Errno 39] Directory not empty: 'PATH/TO/SAVE/MODEL'
specifically the line shutil.rmtree(location)

when forcing a few seconds break with time.sleep before the line, the issue does not occur, there seems to be some file locking that is occuring.

Potentially related to #501

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions