From 2b1f21a59b8dbb3597061adb30ca531fd82cf76b Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 30 Oct 2017 13:54:16 -0700 Subject: [PATCH] Fix MacOS Compile (#5217) --- paddle/operators/seq_expand_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/seq_expand_op.h b/paddle/operators/seq_expand_op.h index aa91e0f9296..87031053851 100644 --- a/paddle/operators/seq_expand_op.h +++ b/paddle/operators/seq_expand_op.h @@ -48,7 +48,7 @@ class SeqExpandKernel : public framework::OpKernel { x_t(x_data, 1, element_len); Eigen::TensorMap> out_t(out_data, scale, element_len); - Eigen::array cast({scale, 1}); + Eigen::array cast({{scale, 1}}); out_t.device(place) = x_t.broadcast(cast); x_data += element_len; out_data += element_len * scale; -- GitLab