Skip to content

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Oct 13, 2017

Base on design #4795

Fixes #4820

@reyoung reyoung requested a review from QiJune October 13, 2017 21:06
auto in_var_type = block->Var(in_var_name)->GetType();
if (in_var_type != default_var_type) {
default_var_type = in_var_type;
break;
Copy link
Member

Choose a reason for hiding this comment

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

I think that there is some logic error here. For a SelectedRows add a LodTensor, the result should be LodTensor. Only all the inputs are SelectedRows, the output will be SelectedRows.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

@QiJune QiJune left a comment

Choose a reason for hiding this comment

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

LGTM

@QiJune QiJune merged commit 172e460 into PaddlePaddle:develop Oct 16, 2017
@reyoung reyoung deleted the feature/implenment_infer_var_type branch October 28, 2017 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants