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

cc: refactor DataModifier for multiple-backend framework #3148

Merged
merged 4 commits into from
Jan 17, 2024

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Jan 16, 2024

See #3119

@njzjz njzjz requested a review from wanghan-iapcm January 16, 2024 03:51
@github-actions github-actions bot added the C++ label Jan 16, 2024
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

Attention: 46 lines in your changes are missing coverage. Please review.

Comparison is base (ed76cff) 76.26% compared to head (e400f9b) 76.23%.

Files Patch % Lines
source/api_cc/src/DataModifierTF.cc 78.06% 23 Missing and 11 partials ⚠️
source/api_cc/src/DataModifier.cc 55.55% 7 Missing and 1 partial ⚠️
source/api_cc/include/DataModifierTF.h 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3148      +/-   ##
==========================================
- Coverage   76.26%   76.23%   -0.03%     
==========================================
  Files         272      274       +2     
  Lines       25537    25570      +33     
  Branches     1583     1587       +4     
==========================================
+ Hits        19475    19494      +19     
- Misses       5135     5147      +12     
- Partials      927      929       +2     

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

Signed-off-by: Jinzhe Zeng <[email protected]>
source/api_cc/src/DataModifierTF.cc Fixed Show fixed Hide fixed
source/api_cc/src/DataModifierTF.cc Fixed Show fixed Hide fixed
assert(output_f.dims() == 2 && "dim of output tensor should be 2");
assert(output_v.dims() == 2 && "dim of output tensor should be 2");
assert(output_av.dims() == 2 && "dim of output tensor should be 2");
int nframes = output_f.dim_size(0);

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable nframes is not used.
assert(output_v.dims() == 2 && "dim of output tensor should be 2");
assert(output_av.dims() == 2 && "dim of output tensor should be 2");
int nframes = output_f.dim_size(0);
int natoms = output_f.dim_size(1) / 3;

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable natoms is not used.
const InputNlist& lmp_list) {
// firstly do selection
int nall = datype_.size();
int nloc = nall - nghost;

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable nloc is not used.
// sort atoms
AtomMap atommap(datype_real.begin(), datype_real.begin() + nloc_real);
assert(nloc_real == atommap.get_type().size());
const std::vector<int>& sort_fwd_map(atommap.get_fwd_map());

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable sort_fwd_map is not used.
@wanghan-iapcm wanghan-iapcm requested review from CaRoLZhangxy and removed request for CaRoLZhangxy January 17, 2024 01:48
@wanghan-iapcm wanghan-iapcm merged commit 1efc7f8 into deepmodeling:devel Jan 17, 2024
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants