Skip to content
Snippets Groups Projects
Commit c4999d7d authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Fix Producer clone implementation check.

parent 7c2b3ed0
No related branches found
No related tags found
No related merge requests found
......@@ -67,10 +67,10 @@ public:
for (std::size_t i = 0; i < static_cast<std::size_t>(nbOutputs()); ++i) {
mOutputs[i] = std::make_shared<Tensor>(*(op.getOutput(i)));
}
if (op.mImpl){
SET_IMPL_MACRO(Producer_Op, *this, op.mOutputs[0]->getImpl()->backend());
if (mOutputs[0]->getImpl() && Registrar<Producer_Op>::exists({mOutputs[0]->getImpl()->backend()})){
SET_IMPL_MACRO(Producer_Op, *this, mOutputs[0]->getImpl()->backend());
}else{
mImpl = nullptr;
mImpl = std::make_shared<OperatorImpl>(*this);
}
}
......
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