未验证 提交 615fc429 编写于 作者: R Ryan 提交者: GitHub

[phi] add register of numel/svd (#51356)

* add numel INT64 register

* del numl

* add svd UNDEFINED register

* remove svd register
上级 f951832d
......@@ -89,13 +89,11 @@ static std::set<std::string> OpsNeedSetOutputDtypeWhenRegisterPhiKernel = {
"multiclass_nms3",
"multinomial",
"nanmedian",
"numl",
"rnn",
"search_sort",
"select",
"send_recv",
"send_ue_recv",
"svd",
"sync_batch_norm_grad",
"unique",
"unique_consecutive_flattened_tensor",
......
......@@ -30,4 +30,6 @@ PD_REGISTER_KERNEL(numel,
phi::dtype::bfloat16,
float,
double,
bool) {}
bool) {
kernel->OutputAt(0).SetDataType(phi::DataType::INT64);
}
......@@ -29,4 +29,6 @@ PD_REGISTER_KERNEL(numel,
phi::dtype::bfloat16,
float,
double,
bool) {}
bool) {
kernel->OutputAt(0).SetDataType(phi::DataType::INT64);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册