Function deepmd::create_deepspin_backend_from_plugin#
Defined in File BackendPlugin.h
Function Documentation#
- std::shared_ptr<DeepSpinBackend> deepmd::create_deepspin_backend_from_plugin(DPBackend backend, const std::string &model, const int &gpu_rank, const std::string &file_content)#
Create a DeepSpin 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 DeepSpin backend instance.