Add shape type registration

This commit is contained in:
huangchengnuo 2023-03-06 14:43:12 +08:00
parent dfbee4567e
commit daca853297
1 changed files with 16 additions and 1 deletions

View File

@ -70,14 +70,29 @@ const std::vector<std::pair<KernelAttr, ShapeCpuKernelMod::KernelRunFunc>> &Shap
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeInt8).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeInt16).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeUInt8).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeUInt16).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeUInt32).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeUInt64).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel}};
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeComplex64).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
{KernelAttr().AddInputAttr(kNumberTypeComplex128).AddOutputAttr(kObjectTypeTuple, kNumberTypeInt64),
&ShapeCpuKernelMod::LaunchKernel},
};
return func_list;
}