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

Fixed attributes cloning

parent 3f31e315
No related branches found
No related tags found
1 merge request!54Update 0.3.1 -> 0.4.0
Pipeline #70466 passed
......@@ -55,7 +55,7 @@ public:
*/
LSQ_Op(const LSQ_Op& op)
: OperatorTensor(op),
mAttributes(op.mAttributes)
mAttributes(std::make_shared<Attributes_>(*op.mAttributes))
{
if (op.mImpl){
SET_IMPL_MACRO(LSQ_Op, *this, op.backend());
......
......@@ -22,7 +22,7 @@ const std::string Aidge::FixedQ_Op::Type = "FixedQ";
Aidge::FixedQ_Op::FixedQ_Op(const Aidge::FixedQ_Op& op)
: OperatorTensor(op),
mAttributes(op.mAttributes)
mAttributes(std::make_shared<Attributes_>(*op.mAttributes))
{
if (op.mImpl){
SET_IMPL_MACRO(FixedQ_Op, *this, op.backend());
......
......@@ -23,7 +23,7 @@ const std::string DoReFa_Op::Type = "DoReFa";
DoReFa_Op::DoReFa_Op(const DoReFa_Op& op)
: OperatorTensor(op),
mAttributes(op.mAttributes)
mAttributes(std::make_shared<Attributes_>(*op.mAttributes))
{
if (op.mImpl) {
SET_IMPL_MACRO(DoReFa_Op, *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