|
|
|
@ -56,7 +56,7 @@ ProgramDesc::ProgramDesc(const ProgramDesc &o) {
|
|
|
|
|
for (const auto &attr : op->Proto()->attrs()) {
|
|
|
|
|
if (attr.type() == proto::AttrType::BLOCK) {
|
|
|
|
|
size_t blk_idx = attr.block_idx();
|
|
|
|
|
op->SetBlockAttr(attr.name(), *this->MutableBlock(blk_idx));
|
|
|
|
|
op->SetBlockAttr(attr.name(), this->MutableBlock(blk_idx));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -73,7 +73,7 @@ ProgramDesc::ProgramDesc(const proto::ProgramDesc &desc) {
|
|
|
|
|
for (const auto &attr : op->Proto()->attrs()) {
|
|
|
|
|
if (attr.type() == proto::AttrType::BLOCK) {
|
|
|
|
|
size_t blk_idx = attr.block_idx();
|
|
|
|
|
op->SetBlockAttr(attr.name(), *this->MutableBlock(blk_idx));
|
|
|
|
|
op->SetBlockAttr(attr.name(), this->MutableBlock(blk_idx));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|