add lod for slice op, test=develop

revert-15296-async_double_buffered_py_reader
jerrywgz 6 years ago
parent 66bb5dd760
commit 0d4b60ab8b

@ -54,6 +54,9 @@ class SliceOp : public framework::OperatorWithKernel {
out_dims[axes[i]] = end - start;
}
ctx->SetOutputDim("Out", out_dims);
if (axes[0] != 0) {
ctx->ShareLoD("Input", /*->*/ "Out");
}
}
protected:

Loading…
Cancel
Save