fix mix target with gpu target

This commit is contained in:
kswang 2020-06-12 15:17:15 +08:00
parent dae35e0a71
commit e283c32899
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ void MsBackend::CreateOtherSession(const std::string &target) {
if (other_sess_ != nullptr && other_device_ == target) {
return;
}
other_sess_ = session::SessionFactory::Get().Create(kCPUDevice);
other_sess_ = session::SessionFactory::Get().Create(target);
if (other_sess_ == nullptr) {
MS_LOG(EXCEPTION) << "Session create failed!, please make sure target device:" << target << " is available.";
}