@@ -70,45 +70,50 @@ KernelSignature FillConstantOpArgumentMapping(
70
70
if (ctx.HasInput (" ShapeTensor" )) {
71
71
if (ctx.HasInput (" ValueTensor" )) {
72
72
return KernelSignature (
73
- " full_sr" , {}, {" ShapeTensor" , " ValueTensor" }, {" Out" });
73
+ " full_sr" , {}, {" ShapeTensor" , " ValueTensor" , " dtype " }, {" Out" });
74
74
} else {
75
75
const auto & str_value =
76
76
paddle::any_cast<std::string>(ctx.Attr (" str_value" ));
77
77
if (str_value.empty ()) {
78
78
return KernelSignature (
79
- " full_sr" , {}, {" ShapeTensor" , " value" }, {" Out" });
79
+ " full_sr" , {}, {" ShapeTensor" , " value" , " dtype " }, {" Out" });
80
80
} else {
81
81
return KernelSignature (
82
- " full_sr" , {}, {" ShapeTensor" , " str_value" }, {" Out" });
82
+ " full_sr" , {}, {" ShapeTensor" , " str_value" , " dtype " }, {" Out" });
83
83
}
84
84
}
85
85
} else if (ctx.InputSize (" ShapeTensorList" ) > 0 ) {
86
86
if (ctx.HasInput (" ValueTensor" )) {
87
- return KernelSignature (
88
- " full_sr" , {}, {" ShapeTensorList" , " ValueTensor" }, {" Out" });
87
+ return KernelSignature (" full_sr" ,
88
+ {},
89
+ {" ShapeTensorList" , " ValueTensor" , " dtype" },
90
+ {" Out" });
89
91
} else {
90
92
const auto & str_value =
91
93
paddle::any_cast<std::string>(ctx.Attr (" str_value" ));
92
94
if (str_value.empty ()) {
93
95
return KernelSignature (
94
- " full_sr" , {}, {" ShapeTensorList" , " value" }, {" Out" });
96
+ " full_sr" , {}, {" ShapeTensorList" , " value" , " dtype " }, {" Out" });
95
97
} else {
96
- return KernelSignature (
97
- " full_sr" , {}, {" ShapeTensorList" , " str_value" }, {" Out" });
98
+ return KernelSignature (" full_sr" ,
99
+ {},
100
+ {" ShapeTensorList" , " str_value" , " dtype" },
101
+ {" Out" });
98
102
}
99
103
}
100
104
} else {
101
105
if (ctx.HasInput (" ValueTensor" )) {
102
106
return KernelSignature (
103
- " full_sr" , {}, {" shape" , " ValueTensor" }, {" Out" });
107
+ " full_sr" , {}, {" shape" , " ValueTensor" , " dtype " }, {" Out" });
104
108
} else {
105
109
const auto & str_value =
106
110
paddle::any_cast<std::string>(ctx.Attr (" str_value" ));
107
111
if (str_value.empty ()) {
108
- return KernelSignature (" full_sr" , {}, {" shape" , " value" }, {" Out" });
112
+ return KernelSignature (
113
+ " full_sr" , {}, {" shape" , " value" , " dtype" }, {" Out" });
109
114
} else {
110
115
return KernelSignature (
111
- " full_sr" , {}, {" shape" , " str_value" }, {" Out" });
116
+ " full_sr" , {}, {" shape" , " str_value" , " dtype " }, {" Out" });
112
117
}
113
118
}
114
119
}
0 commit comments