提交 bc3e0d6e 编写于 作者: M minqiyang

Fix expand op compile time bug

test=develop
上级 e2130502
...@@ -48,7 +48,7 @@ class ExpandOp : public framework::OperatorWithKernel { ...@@ -48,7 +48,7 @@ class ExpandOp : public framework::OperatorWithKernel {
} }
// set the first dim to -1 in compile time // set the first dim to -1 in compile time
if (!ctx->IsRuntime()) { if (!ctx->IsRuntime() && x_dims[0] < 0) {
out_shape[0] = x_dims[0]; out_shape[0] = x_dims[0];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册