From 964cd6609a8e1b67b3fed3097723f25ca640620a Mon Sep 17 00:00:00 2001 From: sneaxiy <32832641+sneaxiy@users.noreply.github.com> Date: Mon, 30 Jan 2023 08:11:49 +0800 Subject: [PATCH] make FLAGS_gemm_use_half_precision_compute_type=false by default (#50050) * make FLAGS_gemm_use_half_precision_compute_type=false defaultly * fix comments --- paddle/phi/core/flags.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/phi/core/flags.cc b/paddle/phi/core/flags.cc index 8b5a78575d..526457499c 100644 --- a/paddle/phi/core/flags.cc +++ b/paddle/phi/core/flags.cc @@ -146,17 +146,17 @@ PADDLE_DEFINE_EXPORTED_bool( * CUDA related related FLAG * Name: FLAGS_gemm_use_half_precision_compute_type * Since Version: 2.4 - * Value Range: bool, default=true + * Value Range: bool, default=false * Example: * Note: whether to use fp16 compute type when the input and output is fp16, * faster but it may loss precision. */ PADDLE_DEFINE_EXPORTED_bool( gemm_use_half_precision_compute_type, - true, + false, "Whether to use fp16 compute type when the input and output is fp16, " "faster but it may loss precision in most case. If true, the compute " - "type will be set to fp32. Default is true."); + "type will be set to fp16. Default is false."); /** * CUDA related FLAG -- GitLab