From b5f022dd192e57fb50c599f7db435d98df0ce275 Mon Sep 17 00:00:00 2001 From: ForFishes <2282912238@qq.com> Date: Sun, 27 Sep 2020 20:55:20 +0800 Subject: [PATCH] fix the windows ci --- paddle/fluid/operators/matmul_v2_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/matmul_v2_op.h b/paddle/fluid/operators/matmul_v2_op.h index c5ecec60a96..2fa1ebdeecf 100644 --- a/paddle/fluid/operators/matmul_v2_op.h +++ b/paddle/fluid/operators/matmul_v2_op.h @@ -432,7 +432,7 @@ static void ReshapeXYOutIntoMatrixSequence(framework::Tensor* x, if (mat_dim_x.batch_size_ == 0 && mat_dim_y.batch_size_ == 0) { out->Resize({mat_dim_x.height_, mat_dim_y.width_}); } else { - out->Resize({std::max(mat_dim_x.batch_size_, mat_dim_y.batch_size_), + out->Resize({(std::max)(mat_dim_x.batch_size_, mat_dim_y.batch_size_), mat_dim_x.height_, mat_dim_y.width_}); } -- GitLab