Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ device
Method
device
python/cpp/replica_pool.h:77–79 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
75
}
76
77
std::string device() const {
78
return device_to_str(_model_loader.device);
79
}
80
81
const std::vector<int>& device_index() const {
82
return _model_loader.device_indices;
Callers
2
register_storage_view
Function · 0.45
_load
Method · 0.45
Calls
1
device_to_str
Function · 0.85
Tested by
no test coverage detected