Skip to content
Snippets Groups Projects
Commit 991e94f3 authored by Franck Dary's avatar Franck Dary
Browse files

setting neural network to correct device

parent 15d915ca
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@ void Classifier::initNeuralNetwork(const std::vector<std::string> & definition)
initLSTM(definition, curIndex);
else
util::myThrow(fmt::format("Unknown network type '{}', available types are 'Random, LSTM'", networkType));
this->nn->to(NeuralNetworkImpl::device);
}
void Classifier::initLSTM(const std::vector<std::string> & definition, std::size_t & curIndex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment