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

[datasets] Make the site_data_base path optional. #518

Conversation

ChrisCummins
Copy link
Contributor

This allows datasets to be specified without needing to pass a site_data_base argument. The purpose of site_data_base to provide an on-disk cache for persistent files, but not all datasets need such a cache.

This allows datasets to be specified without needing to pass a
`site_data_base` argument. The purpose of `site_data_base` to provide
an on-disk cache for persistent files, but not all datasets need such
a cache.
@ChrisCummins
Copy link
Contributor Author

ChrisCummins commented Dec 14, 2021

CC @mostafaelhoushi, this resolves one of the TODO notes in your loop environment PR

@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2021

Codecov Report

Merging #518 (e8676f3) into development (283941e) will increase coverage by 0.03%.
The diff coverage is 75.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #518      +/-   ##
===============================================
+ Coverage        87.33%   87.36%   +0.03%     
===============================================
  Files              113      113              
  Lines             6403     6411       +8     
===============================================
+ Hits              5592     5601       +9     
+ Misses             811      810       -1     
Impacted Files Coverage Δ
compiler_gym/datasets/dataset.py 85.71% <72.72%> (-0.69%) ⬇️
compiler_gym/envs/loop_tool/__init__.py 89.74% <100.00%> (ø)
...loop_tool/service/loop_tool_compilation_session.py 88.59% <0.00%> (+2.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 283941e...e8676f3. Read the comment docs.

Copy link
Contributor

@mostafaelhoushi mostafaelhoushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 14, 2021
@ChrisCummins ChrisCummins merged commit 362a5f5 into facebookresearch:development Dec 15, 2021
@ChrisCummins ChrisCummins deleted the optional-dataset-site-data branch December 15, 2021 13:44
This was referenced Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants