Skip to content

Commit

Permalink
Fix ShareLoD bug (#6084)
Browse files Browse the repository at this point in the history
Fix #6087
  • Loading branch information
reyoung authored Nov 30, 2017
1 parent 82dd165 commit 35453df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/framework/op_desc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CompileTimeInferShapeContext : public InferShapeContext {
PADDLE_ENFORCE_EQ(in_var->GetType(), VarDesc::LOD_TENSOR,
"The %d-th output of Output(%s) must be LoDTensor.", j,
out);
in_var->SetLoDLevel(out_var->GetLodLevel());
out_var->SetLoDLevel(in_var->GetLodLevel());
}
bool IsRuntime() const override;

Expand Down

0 comments on commit 35453df

Please sign in to comment.