Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 74a8980 commit 9d38cb8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions deepmd/utils/batch_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,8 @@ def append_to_list(res_list, res):
results = [] if results is None else results
results = append_to_list(results, result)
else:
results = (
{kk: [] for kk in result} if results is None else results
)
results = {
kk: append_to_list(results[kk], result[kk]) for kk in result
}
results = {kk: [] for kk in result} if results is None else results
results = {kk: append_to_list(results[kk], result[kk]) for kk in result}
assert results is not None
assert returned_dict is not None

Expand Down

0 comments on commit 9d38cb8

Please sign in to comment.