Skip to content

Fix init-frz-model command implementation#1137

Merged
amcadmus merged 1 commit intodeepmodeling:develfrom
denghuilu:fix-init-frz-model
Sep 14, 2021
Merged

Fix init-frz-model command implementation#1137
amcadmus merged 1 commit intodeepmodeling:develfrom
denghuilu:fix-init-frz-model

Conversation

@denghuilu
Copy link
Member

The tf.import_graph_def function prepends 'import' to tensor names, so that we could not load the tensors, such as o_rmat, from the frozen model generated by the init-frz-model command, which is also discussed by #1133 .

This PR should fix this problem by pass "" to the tf.import_graph_def.

Note this PR was inspired by the related tensorflow issue.

@denghuilu denghuilu requested review from amcadmus and njzjz September 13, 2021 14:57
@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2021

Codecov Report

Merging #1137 (c5b2028) into devel (76bc05c) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##            devel    #1137   +/-   ##
=======================================
  Coverage   75.66%   75.66%           
=======================================
  Files          88       88           
  Lines        7034     7034           
=======================================
  Hits         5322     5322           
  Misses       1712     1712           
Impacted Files Coverage Δ
deepmd/model/ener.py 91.74% <ø> (ø)
deepmd/model/tensor.py 88.46% <0.00%> (ø)

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 76bc05c...c5b2028. Read the comment docs.

@amcadmus amcadmus merged commit dae4068 into deepmodeling:devel Sep 14, 2021
njzjz pushed a commit to njzjz/deepmd-kit that referenced this pull request Sep 21, 2023
Added the `model_devi_merge_traj` parameter to allow the merging of
trajectories into one file using the lmp_input template.

---------

Signed-off-by: Pan Xiang <panxiang126@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

4 participants