deepmd.dpmodel.model.transform_output#
Functions#
| Transform the output of the fitting network to |
| Get the dimensions of nf x nloc. |
| Transform the output of the model network defined on |
Module Contents#
- deepmd.dpmodel.model.transform_output.fit_output_to_model_output(fit_ret: dict[str, numpy.ndarray], fit_output_def: deepmd.dpmodel.output_def.FittingOutputDef, coord_ext: numpy.ndarray, do_atomic_virial: bool = False) dict[str, numpy.ndarray][source]#
Transform the output of the fitting network to the model output.
- deepmd.dpmodel.model.transform_output.get_leading_dims(vv: numpy.ndarray, vdef: deepmd.dpmodel.output_def.OutputVariableDef)[source]#
Get the dimensions of nf x nloc.
- Parameters:
- vv
np.ndarray The input array from which to compute the leading dimensions.
- vdef
OutputVariableDef The output variable definition containing the shape to exclude from vv.
- vv
- Returns:
listA list of leading dimensions of vv, excluding the last len(vdef.shape) dimensions.
- deepmd.dpmodel.model.transform_output.communicate_extended_output(model_ret: dict[str, numpy.ndarray], model_output_def: deepmd.dpmodel.output_def.ModelOutputDef, mapping: numpy.ndarray, do_atomic_virial: bool = False) dict[str, numpy.ndarray][source]#
Transform the output of the model network defined on local and ghost (extended) atoms to local atoms.