Skip to content

Commit

Permalink
Add init-frz-model command support to the frozen model generated by t…
Browse files Browse the repository at this point in the history
…his command (deepmodeling#1137)
  • Loading branch information
denghuilu authored Sep 14, 2021
1 parent df10d84 commit dae4068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepmd/model/ener.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,4 @@ def build (self,

def _import_graph_def_from_frz_model(self, frz_model, feed_dict, return_elements):
graph, graph_def = load_graph_def(frz_model)
return tf.import_graph_def(graph_def, input_map = feed_dict, return_elements = return_elements)
return tf.import_graph_def(graph_def, input_map = feed_dict, return_elements = return_elements, name = "")
2 changes: 1 addition & 1 deletion deepmd/model/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def build (self,

def _import_graph_def_from_frz_model(self, frz_model, feed_dict, return_elements):
graph, graph_def = load_graph_def(frz_model)
return tf.import_graph_def(graph_def, input_map = feed_dict, return_elements = return_elements)
return tf.import_graph_def(graph_def, input_map = feed_dict, return_elements = return_elements, name = "")

class WFCModel(TensorModel):
def __init__(
Expand Down

0 comments on commit dae4068

Please sign in to comment.