From b3f60f392b2d99c4ba34f3b35a33d9e62663dded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=82=85=E5=89=91=E5=AF=92?= Date: Thu, 9 Feb 2023 10:22:44 +0800 Subject: [PATCH] fix set_value_65965 (#50340) --- paddle/phi/ops/compat/set_value_sig.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/paddle/phi/ops/compat/set_value_sig.cc b/paddle/phi/ops/compat/set_value_sig.cc index c967f13993..f29aa63e22 100644 --- a/paddle/phi/ops/compat/set_value_sig.cc +++ b/paddle/phi/ops/compat/set_value_sig.cc @@ -194,6 +194,19 @@ KernelSignature SetValueOpArgumentMapping(const ArgumentMappingContext& ctx) { "shape", "bool_values"}, {"Out"}); + } else if (ctx.HasAttr("fp16_values")) { + // NOTE(LiuYang):Here any_cast doesn't support fp16 values. + return KernelSignature("set_value", + {"Input"}, + {"StartsTensorList", + "EndsTensorList", + "steps", + "axes", + "decrease_axes", + "none_axes", + "shape", + "fp16_values"}, + {"Out"}); } } } else { -- GitLab