From 77b7765f9d6521df7958579f028db505b5ac8856 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Thu, 30 Mar 2023 11:23:45 +0800 Subject: [PATCH] fix gcc12 error (#52318) --- .../fluid/prim/api/composite_backward/composite_backward_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/prim/api/composite_backward/composite_backward_api.h b/paddle/fluid/prim/api/composite_backward/composite_backward_api.h index 35059ab2ddf..58617f9b36d 100644 --- a/paddle/fluid/prim/api/composite_backward/composite_backward_api.h +++ b/paddle/fluid/prim/api/composite_backward/composite_backward_api.h @@ -1299,7 +1299,7 @@ void batch_norm_grad(const Tensor& x, std::vector nchw_to_nhwc_dim = {0, 2, 3, 1}; std::vector nhwc_to_nchw_dim = {0, 3, 1, 2}; - auto reduce_axis = IntArray(std::vector{0, 1, 2}); + auto reduce_axis = IntArray(std::vector{0, 1, 2}); auto dtype = x_data.dtype(); switch (data_layout_) { -- GitLab