Skip to content
Snippets Groups Projects
Commit b3a41e3d authored by Maxence Naud's avatar Maxence Naud Committed by Maxence Naud
Browse files

Fix 'Pop_Op::forward' that should not be inplace

parent 39fe5ef8
No related branches found
No related tags found
2 merge requests!279v0.4.0,!273[Fix] Producer clone and Tensor copy
This commit is part of merge request !273. Comments created here will be created in the context of that merge request.
......@@ -33,7 +33,7 @@ void Aidge::Pop_OpImpl::forward() {
const Pop_Op& op = dynamic_cast<const Pop_Op&>(mOp);
assert(op.getInput(0) && "missing input #0");
*op.getOutput(0) = op.getInput(0)->extract({op.forwardStep()});
*op.getOutput(0) = op.getInput(0)->extract({op.forwardStep()}).clone();
}
//////////////////////////////////////////////////////////
......
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