Skip to content

support -1 shape in DataType#510

Merged
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:any-axis-submit
Jul 26, 2023
Merged

support -1 shape in DataType#510
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:any-axis-submit

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Jul 25, 2023

Sometimes, the shape is unknown and can be any integer. This PR supports this situation. The shape of a dimension can be -1.
Note: Only one -1 can be used.

njzjz and others added 2 commits July 25, 2023 14:45
Sometimes, the shape is unknown and can be any integer. This PR supports
this situation.
Note: Only one `-1` can be used.

---------

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
(cherry picked from commit 3bbb825)
@njzjz njzjz marked this pull request as ready for review July 25, 2023 18:49
@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (9ef8daf) 82.75% compared to head (d92ed20) 82.77%.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #510      +/-   ##
==========================================
+ Coverage   82.75%   82.77%   +0.01%     
==========================================
  Files          71       71              
  Lines        6421     6428       +7     
==========================================
+ Hits         5314     5321       +7     
  Misses       1107     1107              
Files Changed Coverage Δ
dpdata/data_type.py 89.23% <100.00%> (+0.89%) ⬆️
dpdata/deepmd/comp.py 94.92% <100.00%> (+0.03%) ⬆️
dpdata/deepmd/raw.py 91.57% <100.00%> (+0.08%) ⬆️

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

@njzjz njzjz changed the title support -1 shape in DataType (#62) support -1 shape in DataType Jul 25, 2023
@njzjz njzjz requested a review from wanghan-iapcm July 25, 2023 18:52
@wanghan-iapcm wanghan-iapcm merged commit 47619b7 into deepmodeling:devel Jul 26, 2023
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.

2 participants