mirror of
https://github.com/marian-nmt/marian.git
synced 2024-12-11 09:54:22 +03:00
GetScorers() use DeviceInfo
This commit is contained in:
parent
1dbdf57c78
commit
a34cb2e54b
@ -179,8 +179,6 @@ OutputCollector& God::GetOutputCollector() const {
|
|||||||
std::vector<ScorerPtr> God::GetScorers(const DeviceInfo &deviceInfo) const {
|
std::vector<ScorerPtr> God::GetScorers(const DeviceInfo &deviceInfo) const {
|
||||||
std::vector<ScorerPtr> scorers;
|
std::vector<ScorerPtr> scorers;
|
||||||
|
|
||||||
size_t cpuThreads = God::Get<size_t>("cpu-threads");
|
|
||||||
|
|
||||||
if (deviceInfo.deviceType == CPUDevice) {
|
if (deviceInfo.deviceType == CPUDevice) {
|
||||||
for (auto&& loader : cpuLoaders_ | boost::adaptors::map_values)
|
for (auto&& loader : cpuLoaders_ | boost::adaptors::map_values)
|
||||||
scorers.emplace_back(loader->NewScorer(*this, deviceInfo.threadInd));
|
scorers.emplace_back(loader->NewScorer(*this, deviceInfo.threadInd));
|
||||||
|
Loading…
Reference in New Issue
Block a user