mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +03:00
Clarify misleading comment (#99)
This commit is contained in:
parent
3daa024eb3
commit
e4b58357db
@ -36,7 +36,7 @@ void BatchTranslator::initialize() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
graph_ = New<ExpressionGraph>(true); // always optimize
|
graph_ = New<ExpressionGraph>(true); // set the graph to be inference only
|
||||||
auto prec = options_->get<std::vector<std::string>>("precision", {"float32"});
|
auto prec = options_->get<std::vector<std::string>>("precision", {"float32"});
|
||||||
graph_->setDefaultElementType(typeFromString(prec[0]));
|
graph_->setDefaultElementType(typeFromString(prec[0]));
|
||||||
graph_->setDevice(device_);
|
graph_->setDevice(device_);
|
||||||
|
Loading…
Reference in New Issue
Block a user