From 0e25e397bdf71ef6e522dbdb6d3de991b5bc019c Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Thu, 25 Oct 2018 15:01:10 +0800 Subject: [PATCH] shape type to int64_t, test=develop --- paddle/fluid/framework/op_desc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/framework/op_desc.cc b/paddle/fluid/framework/op_desc.cc index 29b00612585..8ece618f3f7 100644 --- a/paddle/fluid/framework/op_desc.cc +++ b/paddle/fluid/framework/op_desc.cc @@ -415,13 +415,13 @@ struct SetAttrDescVisitor : public boost::static_visitor { void operator()(const std::vector &v) const { std::vector blocks_idx; for (auto blk : v) { - blocks_idx.push_sback(blk->ID()); + blocks_idx.push_back(blk->ID()); } VectorToRepeated(blocks_idx, attr_->mutable_blocks_idx()); } - void operator()(BlockDesapply_visitorc *desc) const { - attr_->set_block_idx(desc->ID()); - } + + void operator()(BlockDesc *desc) const { attr_->set_block_idx(desc->ID()); } + void operator()(int64_t v) const { attr_->set_l(v); } void operator()(const std::vector &v) const { -- GitLab