提交 39b3bf24 编写于 作者: T tangwei12

shape type to int64_t, test=develop

上级 755927d2
...@@ -415,13 +415,11 @@ struct SetAttrDescVisitor : public boost::static_visitor<void> { ...@@ -415,13 +415,11 @@ struct SetAttrDescVisitor : public boost::static_visitor<void> {
void operator()(const std::vector<BlockDesc *> &v) const { void operator()(const std::vector<BlockDesc *> &v) const {
std::vector<int> blocks_idx; std::vector<int> blocks_idx;
for (auto blk : v) { for (auto blk : v) {
blocks_idx.push_sback(blk->ID()); blocks_idx.push_back(blk->ID());
} }
VectorToRepeated(blocks_idx, attr_->mutable_blocks_idx()); VectorToRepeated(blocks_idx, attr_->mutable_blocks_idx());
} }
void operator()(BlockDesapply_visitorc *desc) const { void operator()(BlockDesc *desc) const { attr_->set_block_idx(desc->ID()); }
attr_->set_block_idx(desc->ID());
}
void operator()(int64_t v) const { attr_->set_l(v); } void operator()(int64_t v) const { attr_->set_l(v); }
void operator()(const std::vector<int64_t> &v) const { void operator()(const std::vector<int64_t> &v) const {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册