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

Fixed attributes not properly cloned in GenericOperator copy constructor

parent 451ac9e9
No related branches found
No related tags found
1 merge request!325[Upd] Patch v0.5.1
......@@ -45,7 +45,7 @@ Aidge::GenericOperator_Op::GenericOperator_Op(const std::string& type,
Aidge::GenericOperator_Op::GenericOperator_Op(const Aidge::GenericOperator_Op& op)
: OperatorTensor(op),
mForwardDims(op.mForwardDims),
mAttributes(op.attributes() ? op.mAttributes : std::make_shared<DynamicAttributes>())
mAttributes(std::make_shared<DynamicAttributes>(*op.mAttributes))
{
mImpl = std::make_shared<OperatorImpl>(*this, op.backend());
}
......
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