Skip to content

Commit 35453df

Browse files
authored
Fix ShareLoD bug (#6084)
Fix #6087
1 parent 82dd165 commit 35453df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/framework/op_desc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CompileTimeInferShapeContext : public InferShapeContext {
6565
PADDLE_ENFORCE_EQ(in_var->GetType(), VarDesc::LOD_TENSOR,
6666
"The %d-th output of Output(%s) must be LoDTensor.", j,
6767
out);
68-
in_var->SetLoDLevel(out_var->GetLodLevel());
68+
out_var->SetLoDLevel(in_var->GetLodLevel());
6969
}
7070
bool IsRuntime() const override;
7171

0 commit comments

Comments
 (0)