From e0fadd82f1d3e0fea72dbb29497c31416abae87d Mon Sep 17 00:00:00 2001 From: niuliling123 <51102941+niuliling123@users.noreply.github.com> Date: Wed, 12 Oct 2022 08:32:26 +0800 Subject: [PATCH] Delete invalid comment in layout autotune (#46881) --- paddle/fluid/eager/auto_code_generator/generator/eager_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/eager/auto_code_generator/generator/eager_gen.py b/paddle/fluid/eager/auto_code_generator/generator/eager_gen.py index 8ec8e43cc0..308e0348a2 100644 --- a/paddle/fluid/eager/auto_code_generator/generator/eager_gen.py +++ b/paddle/fluid/eager/auto_code_generator/generator/eager_gen.py @@ -1093,7 +1093,7 @@ class DygraphForwardFunctionGenerator(DygraphFunctionGeneratorBase): tensors_vector_list_str = "{ " + ",".join( amp_tensors_vector_list) + " }" - if len(amp_tensors_vector_list) == 0: # or forward_api_name == "shape": + if len(amp_tensors_vector_list) == 0: layout_logic_str = "" else: after_call_str = f"{returns_type_str} {result_name} = {forward_function_name}({layout_inputs_call_args_str});\n" -- GitLab