-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
DFT Utilities [PR-1] [Config | Ztypes] #3588
Conversation
deepchem/utils/dft_utils/config.py
Outdated
CHUNK_MEMORY: int | ||
The memory for splitting big tensors into chunks | ||
VERBOSE: int | ||
Verbosity level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need more clarification on the attributes and how they help in context to the task you are gonna perform. (like verbosity level can be explained further)
|
||
def test_config(): | ||
conf = config | ||
assert conf.THRESHOLD_MEMORY == 10 * 1024**3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are the config variables required to be constant? Or can the user try to change them as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like they used it as an overall configuration. I didn't find case of modification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and I found some cases in which they have modified these.
dqc/test/benchmarks.py: config.VERBOSE = 1
and 2 more locations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge in for now, but we may need to come back later and clean this up
@GreatRSingh I have some questions on this PR. |
I think they had used it as an overall limit specifier for their DFT functions. so i guess one file should be better. |
I think I understand your thought, we should have these configurations according to our own ML Hardware system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Fix #(issue)
Type of change
Please check the option that is related to your PR.
Checklist
yapf -i <modified file>
and check no errors (yapf version must be 0.32.0)mypy -p deepchem
and check no errorsflake8 <modified file> --count
and check no errorspython -m doctest <modified file>
and check no errors