Skip to content

Unify Map in OpDescBind#4547

Merged
reyoung merged 3 commits intoPaddlePaddle:developfrom
reyoung:feature/change_bind_data_types
Oct 2, 2017
Merged

Unify Map in OpDescBind#4547
reyoung merged 3 commits intoPaddlePaddle:developfrom
reyoung:feature/change_bind_data_types

Conversation

@reyoung
Copy link
Collaborator

@reyoung reyoung commented Sep 30, 2017

No description provided.

@reyoung reyoung requested a review from JiayiFeng September 30, 2017 23:55
attr_desc->set_type(
static_cast<framework::AttrType>(attr.second.which() - 1));
boost::apply_visitor(SetAttrDescVisitor(attr_desc), attr.second);
SetAttrDescVisitor visitor(attr_desc);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is recommended by clang-tidy for code reading.

JiayiFeng
JiayiFeng previously approved these changes Oct 1, 2017
Copy link
Collaborator

@JiayiFeng JiayiFeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@reyoung reyoung merged commit 33c5453 into PaddlePaddle:develop Oct 2, 2017
namespace framework {

// The order should be as same as framework.proto
typedef boost::variant<boost::blank, int, float, std::string, std::vector<int>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason of moving type Attribute from attribute.h into a new header files type_defs.h? This PR claims to resolve a cyclic dependency issue, but there is no description of this issue.

@wangkuiyi wangkuiyi mentioned this pull request Oct 4, 2017
@reyoung reyoung deleted the feature/change_bind_data_types branch October 12, 2017 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants