forked from mindspore-Ecosystem/mindspore
extend supported data type (int64 and float64) for primitive tensorshape
This commit is contained in:
parent
d28ce2e019
commit
bc2bfa9265
|
@ -22,48 +22,72 @@ namespace kernel {
|
|||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, int32_t, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, int64_t, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, half, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, float, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, double, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, bool, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, int32_t, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, int64_t, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, half, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, float, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, double, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, bool, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, int32_t, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, int64_t, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, half, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, float, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, double, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt32),
|
||||
TensorShapeGpuKernelMod, bool, int32_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, int32_t, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, int64_t, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, half, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, float, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, double, int64_t)
|
||||
|
||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt64),
|
||||
TensorShapeGpuKernelMod, bool, int64_t)
|
||||
} // namespace kernel
|
||||
|
|
Loading…
Reference in New Issue