Skip to content

set default fparam and aparam stat and recover from graph#1695

Merged
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:restart-fparam
May 11, 2022
Merged

set default fparam and aparam stat and recover from graph#1695
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:restart-fparam

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented May 9, 2022

fix #1692

@njzjz njzjz linked an issue May 9, 2022 that may be closed by this pull request
@njzjz njzjz requested a review from wanghan-iapcm May 9, 2022 19:09
Comment on lines +382 to +383
self.fparam_avg = 0.
self.fparam_inv_std = 1.
Copy link
Collaborator

Choose a reason for hiding this comment

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

if self.fparam_avg is None:
    self.fparam_avg = 0.
if self.fparam_inv_std is None:
    self.fparam_inv_std = 1.

Comment on lines +385 to +386
self.aparam_avg = 0.
self.aparam_inv_std = 1.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same suggestion for aparam

@codecov-commenter
Copy link

codecov-commenter commented May 10, 2022

Codecov Report

Merging #1695 (62bb8dd) into devel (89e7149) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##            devel    #1695      +/-   ##
==========================================
- Coverage   76.07%   76.03%   -0.04%     
==========================================
  Files          94       94              
  Lines        7863     7875      +12     
==========================================
+ Hits         5982     5988       +6     
- Misses       1881     1887       +6     
Impacted Files Coverage Δ
deepmd/fit/ener.py 90.16% <50.00%> (-2.08%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89e7149...62bb8dd. Read the comment docs.

@wanghan-iapcm wanghan-iapcm merged commit cf8bc56 into deepmodeling:devel May 11, 2022
@njzjz njzjz deleted the restart-fparam branch May 11, 2022 01:17
mingzhong15 pushed a commit to mingzhong15/deepmd-kit that referenced this pull request Jan 15, 2023
…ng#1695)

* set default fparam and aparam stat and recover from graph

fix deepmodeling#1692

* check avg and std separately
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.

How to restart/init-model a training with numb_fparam=1 ?

3 participants