deepmd.tf.utils.convert#
Attributes#
Functions#
| Detect DP graph version. |
| Convert DP graph to 2.1 graph. |
| Convert DP 1.3 graph to 2.1 graph. |
| Convert DP 1.2 graph to 2.1 graph. |
| Convert DP 1.0 graph to 2.1 graph. |
| Convert DP 0.12 graph to 2.1 graph. |
| Convert DP 2.0 graph to 2.1 graph. |
| Convert DP graph to graph text. |
| Convert DP graph text to graph. |
| Convert DP 0.12 graph text to 1.0 graph text. |
| Convert DP 1.0 graph text to 1.1 graph text. |
| Convert DP 1.2 graph text to 1.3 graph text. |
| Convert DP 1.3 graph text to 2.0 graph text. |
|
Module Contents#
- deepmd.tf.utils.convert.detect_model_version(input_model: str)[source]#
Detect DP graph version.
- Parameters:
- input_model
str
filename of the input graph
- input_model
- deepmd.tf.utils.convert.convert_to_21(input_model: str, output_model: str, version: str | None = None) None [source]#
Convert DP graph to 2.1 graph.
- deepmd.tf.utils.convert.convert_13_to_21(input_model: str, output_model: str) None [source]#
Convert DP 1.3 graph to 2.1 graph.
- deepmd.tf.utils.convert.convert_12_to_21(input_model: str, output_model: str) None [source]#
Convert DP 1.2 graph to 2.1 graph.
- deepmd.tf.utils.convert.convert_10_to_21(input_model: str, output_model: str) None [source]#
Convert DP 1.0 graph to 2.1 graph.
- deepmd.tf.utils.convert.convert_012_to_21(input_model: str, output_model: str) None [source]#
Convert DP 0.12 graph to 2.1 graph.
- deepmd.tf.utils.convert.convert_20_to_21(input_model: str, output_model: str) None [source]#
Convert DP 2.0 graph to 2.1 graph.
- deepmd.tf.utils.convert.convert_pb_to_pbtxt(pbfile: str, pbtxtfile: str) None [source]#
Convert DP graph to graph text.
- deepmd.tf.utils.convert.convert_pbtxt_to_pb(pbtxtfile: str, pbfile: str) None [source]#
Convert DP graph text to graph.
- deepmd.tf.utils.convert.convert_dp012_to_dp10(file: str) None [source]#
Convert DP 0.12 graph text to 1.0 graph text.
- Parameters:
- file
str
filename of the graph text
- file
- deepmd.tf.utils.convert.convert_dp10_to_dp11(file: str) None [source]#
Convert DP 1.0 graph text to 1.1 graph text.
- Parameters:
- file
str
filename of the graph text
- file
- deepmd.tf.utils.convert.convert_dp12_to_dp13(file: str) None [source]#
Convert DP 1.2 graph text to 1.3 graph text.
- Parameters:
- file
str
filename of the graph text
- file