Skip to content
Snippets Groups Projects
Commit 0da4f0a8 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Hotfix for #214

parent cc6b7704
No related branches found
No related tags found
1 merge request!318[Upd] release verision 0.5.0
Pipeline #61378 passed
......@@ -96,7 +96,9 @@ void Aidge::MetaOperator_Op::setBackend(const std::string &name, Aidge::DeviceId
for(auto i: mGraph->inputNodes()){
auto op_i = std::static_pointer_cast<OperatorTensor>(i->getOperator());
for(std::size_t in_idx=0; in_idx < op_i->nbInputs(); ++in_idx){
op_i->getInput(in_idx)->setBackend(name, device);
if (op_i->getInput(in_idx)) {
op_i->getInput(in_idx)->setBackend(name, device);
}
}
}
for(auto o: mGraph->outputNodes()){
......
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