Function deepmd::create_deeppot_backend_from_plugin

Function deepmd::create_deeppot_backend_from_plugin#

Function Documentation#

std::shared_ptr<DeepPotBackend> deepmd::create_deeppot_backend_from_plugin(DPBackend backend, const std::string &model, const int &gpu_rank, const std::string &file_content)#

Create a DeepPot backend through a runtime backend plugin.

Parameters:
  • backend[in] The backend plugin to load.

  • model[in] The name of the frozen model file.

  • gpu_rank[in] The GPU rank.

  • file_content[in] The content of the model file. If it is not empty, the backend will read from the string instead of the file.

Returns:

The DeepPot backend instance.