Alias for backward compatibility.Module Contents
Functions
- deepmd.tf.utils.compat.convert_input_v0_v1(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) → Dict[str, Any][source]
Convert input from v0 format to v1.
- Parameters:
- jdata
Dict
[str
, Any
] loaded json/yaml file
- warningbool,
optional
whether to show deprecation warning, by default True
- dump
Optional
[Union
[str
, Path
]], optional
whether to dump converted file, by default None
- Returns:
Dict
[str
, Any
]converted output
- deepmd.tf.utils.compat.convert_input_v1_v2(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) → Dict[str, Any][source]
- deepmd.tf.utils.compat.deprecate_numb_test(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) → Dict[str, Any][source]
Deprecate numb_test since v2.1. It has taken no effect since v2.0.
See #1243.
- Parameters:
- jdata
Dict
[str
, Any
] loaded json/yaml file
- warningbool,
optional
whether to show deprecation warning, by default True
- dump
Optional
[Union
[str
, Path
]], optional
whether to dump converted file, by default None
- Returns:
Dict
[str
, Any
]converted output
- deepmd.tf.utils.compat.update_deepmd_input(jdata: Dict[str, Any], warning: bool = True, dump: str | pathlib.Path | None = None) → Dict[str, Any][source]