提交 a5f0081c 编写于 作者: L liaogang

remove unroll

上级 b36205e2
...@@ -28,7 +28,6 @@ struct EigenDim { ...@@ -28,7 +28,6 @@ struct EigenDim {
static Type From(const DDim& dims) { static Type From(const DDim& dims) {
PADDLE_ENFORCE(arity(dims) == D, "D must match arity(DDim)"); PADDLE_ENFORCE(arity(dims) == D, "D must match arity(DDim)");
Type ret; Type ret;
#pragma unroll
for (int d = 0; d < arity(dims); d++) { for (int d = 0; d < arity(dims); d++) {
ret[d] = dims[d]; ret[d] = dims[d];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册