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

Fix bugs #107

Merged
merged 4 commits into from
Dec 29, 2022
Merged

Fix bugs #107

merged 4 commits into from
Dec 29, 2022

Conversation

wanghan-iapcm
Copy link

  1. init_data_sys can be str
  2. not overwriting the batch size in dp input script
  3. update dependencies.

@wanghan-iapcm wanghan-iapcm requested a review from njzjz December 29, 2022 06:16
Comment on lines 199 to 200
if odict['training']['training_data'].get('batch_size') is None:
odict['training']['training_data']['batch_size'] = "auto"
Copy link
Member

Choose a reason for hiding this comment

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

Use dict.setdefault.

Suggested change
if odict['training']['training_data'].get('batch_size') is None:
odict['training']['training_data']['batch_size'] = "auto"
odict['training']['training_data'].setdefault('batch_size', "auto")

@codecov-commenter
Copy link

codecov-commenter commented Dec 29, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.08%. Comparing base (22e9b13) to head (600fa14).
Report is 132 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #107   +/-   ##
=======================================
  Coverage   81.08%   81.08%           
=======================================
  Files          69       69           
  Lines        2903     2903           
=======================================
  Hits         2354     2354           
  Misses        549      549           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wanghan-iapcm wanghan-iapcm merged commit 9a722c1 into deepmodeling:master Dec 29, 2022
@wanghan-iapcm wanghan-iapcm deleted the fix-bugs branch December 29, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants