Clarify misleading comment (#99)

This commit is contained in:
Nikolay Bogoychev 2021-04-14 09:56:07 +01:00 committed by GitHub
parent 3daa024eb3
commit e4b58357db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"});
graph_->setDefaultElementType(typeFromString(prec[0]));
graph_->setDevice(device_);