Skip to content

Conversation

@anyangml
Copy link
Collaborator

No description provided.

@anyangml anyangml marked this pull request as draft February 13, 2024 10:38
@anyangml anyangml self-assigned this Feb 13, 2024
@codecov
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

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

Comparison is base (43f17da) 74.98% compared to head (e125be1) 74.99%.

Files Patch % Lines
deepmd/pt/model/task/fitting.py 97.14% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #3266   +/-   ##
=======================================
  Coverage   74.98%   74.99%           
=======================================
  Files         384      384           
  Lines       33522    33547   +25     
  Branches     1604     1604           
=======================================
+ Hits        25136    25157   +21     
- Misses       7525     7529    +4     
  Partials      861      861           

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

@anyangml
Copy link
Collaborator Author

@wanghan-iapcm, this is only a draft, not tested, but it's what i have in mind. feels like we can reuse a large portion of the code from InvarFitting, we only need to change the output dim from 1 to 3or 9, and transform the output with gr. If that's the case, we might want to create a GeneralFitting to encapsulate the common methods, and refactor InvarFitting as a child class.

@wanghan-iapcm
Copy link
Collaborator

please note that the predictions of dipole and polar are rotationally equivariant.

@anyangml
Copy link
Collaborator Author

please note that the predictions of dipole and polar are rotationally equivariant.

I thought this handles the rotational equivariance,

torch.bmm(outs, gr).squeeze(-2).view(nframes, nloc, 3)

@anyangml anyangml added the Test CUDA Trigger test CUDA workflow label Feb 15, 2024
@github-actions github-actions bot removed the Test CUDA Trigger test CUDA workflow label Feb 15, 2024
@anyangml anyangml added the Test CUDA Trigger test CUDA workflow label Feb 15, 2024
@github-actions github-actions bot removed the Test CUDA Trigger test CUDA workflow label Feb 15, 2024
@anyangml anyangml requested a review from iProzd February 16, 2024 02:12
@anyangml
Copy link
Collaborator Author

anyangml commented Feb 16, 2024

@wanghan-iapcm UT 'test_make_hessian_model` fails on CUDA, not sure if it was tested before.

@anyangml anyangml added the Test CUDA Trigger test CUDA workflow label Feb 16, 2024
@github-actions github-actions bot removed the Test CUDA Trigger test CUDA workflow label Feb 16, 2024
@anyangml anyangml requested a review from njzjz February 16, 2024 03:24
@anyangml anyangml added the Test CUDA Trigger test CUDA workflow label Feb 16, 2024
@github-actions github-actions bot removed the Test CUDA Trigger test CUDA workflow label Feb 16, 2024
@anyangml anyangml added the Test CUDA Trigger test CUDA workflow label Feb 16, 2024
@github-actions github-actions bot removed the Test CUDA Trigger test CUDA workflow label Feb 16, 2024
@wanghan-iapcm wanghan-iapcm merged commit 15f8d25 into deepmodeling:devel Feb 16, 2024
@njzjz njzjz mentioned this pull request Apr 2, 2024
@njzjz njzjz linked an issue May 1, 2024 that may be closed by this pull request
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.

[Feature Request] dpmodel and pt fitting should export several methods

4 participants