Merge pull request #16259 from phlrain/fix_lod_reset

Fix lod reset
revert-16190-refine_parallel_executor
Hongyu Liu 6 years ago committed by GitHub
commit b3b7e352ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,7 +32,10 @@ class LoDResetOp : public framework::OperatorWithKernel {
PADDLE_ENFORCE_GT(level0.size(), 1,
"If Input(Y) not provided, the target lod should be "
"specified by attribute `target_lod`.");
} else {
ctx->ShareLoD("Y", "Out");
}
ctx->SetOutputDim("Out", ctx->GetInputDim("X"));
}

Loading…
Cancel
Save