Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes tests/test_train.py to mock checkpoint.save_dir config node #3675

Closed
wants to merge 1 commit into from

Conversation

omry
Copy link
Contributor

@omry omry commented Jul 1, 2021

What does this PR do?

Some downstream users reported that errors when passing Namespace to load_checkpoint().

A recent change made the assumption that the passed object is dict like (dict or DictConfig) that have a get function.
This changes that and make sure the mocked config have checkpoint.save_dir to allow the test to run.

@facebook-github-bot
Copy link
Contributor

@lematt1991 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@lematt1991 merged this pull request in dd106d9.

vedanuj pushed a commit that referenced this pull request Oct 19, 2022
* reqs added, import move, readme link added

* file save fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants