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

Fixed clang errors

parent e0774723
No related branches found
No related tags found
No related merge requests found
......@@ -26,14 +26,15 @@ void Aidge::explicitConvert(std::shared_ptr<GraphView> graph) {
if (node->type() == Convert_Op::Type) {
// Remove existing Convert operator, if not needed anymore
const auto& parent = node->inputs()[0];
const auto parent = node->inputs()[0];
const auto& input = std::static_pointer_cast<OperatorTensor>(parent.first->getOperator())->getOutput(parent.second);
if (input->dataType() == output->dataType()
&& (input->getImpl()->device() == device))
{
// Add direct connection bypassing Convert node
for (auto child : node->outputs()[0]) {
const auto childs = node->outputs()[0];
for (const auto& child : childs) {
parent.first->addChild(child.first, parent.second, child.second);
}
......
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