Function DP_NewDeepPotWithParam2

Function Documentation

DP_DeepPot *DP_NewDeepPotWithParam2(const char *c_model, const int gpu_rank, const char *c_file_content, const int size_file_content)

DP constructor with initialization.

Version

2

Parameters
  • c_model – The name of the frozen model file.

  • gpu_rank – The rank of the GPU.

  • c_file_content – The content of the model file.

  • size_file_content – The size of the model file.

Returns

DP_DeepPot* A pointer to the deep potential.