Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

If the snapshot path provided is not valid, throw error #1268

Closed

Conversation

arbabu123
Copy link
Contributor

Summary:
It was silently failing when i was trying to load a file from gluster. Shouldnt it throw error if the file is not readable?

Created from Diffusion's 'Open in Editor' feature.

config.load_snapshot_path : /mnt/vol/gfsfblearner-east3/flow/data/2020-02-27/4167d473-9a3a-4198-82b1-153c4db14afd/171027009/5924195916406591978/model.pt
PathManager.isfile(config.load_snapshot_path) : False

Reviewed By: hudeven

Differential Revision: D20144757

Summary:
It was silently failing when i was trying to load a file from gluster. Shouldnt it throw error if the file is not readable?

Created from Diffusion's 'Open in Editor' feature.

```
config.load_snapshot_path : /mnt/vol/gfsfblearner-east3/flow/data/2020-02-27/4167d473-9a3a-4198-82b1-153c4db14afd/171027009/5924195916406591978/model.pt
PathManager.isfile(config.load_snapshot_path) : False
```

Reviewed By: hudeven

Differential Revision: D20144757

fbshipit-source-id: e1743dc009fde3ac29fb302b46e043f5691d1d48
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 28, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D20144757

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7eef977.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants