forked from mindspore-Ecosystem/mindspore
!45700 extend supported data type (int64 and float64) for primitive tensorshape
Merge pull request !45700 from zhangzhaoju/ms_tensorShape
This commit is contained in:
commit
7a0c519cb2
|
@ -22,48 +22,72 @@ namespace kernel {
|
||||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, int32_t, int32_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, half, int32_t)
|
TensorShapeGpuKernelMod, half, int32_t)
|
||||||
|
|
||||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt32),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, float, int32_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, bool, int32_t)
|
TensorShapeGpuKernelMod, bool, int32_t)
|
||||||
|
|
||||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt64),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, int32_t, int64_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, half, int64_t)
|
TensorShapeGpuKernelMod, half, int64_t)
|
||||||
|
|
||||||
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt64),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, float, int64_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(TensorShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, bool, int64_t)
|
TensorShapeGpuKernelMod, bool, int64_t)
|
||||||
|
|
||||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, int32_t, int32_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, half, int32_t)
|
TensorShapeGpuKernelMod, half, int32_t)
|
||||||
|
|
||||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt32),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, float, int32_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt32),
|
||||||
TensorShapeGpuKernelMod, bool, int32_t)
|
TensorShapeGpuKernelMod, bool, int32_t)
|
||||||
|
|
||||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt64),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, int32_t, int64_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, half, int64_t)
|
TensorShapeGpuKernelMod, half, int64_t)
|
||||||
|
|
||||||
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt64),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, float, int64_t)
|
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),
|
MS_REG_GPU_KERNEL_TWO(DynamicShape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeInt64),
|
||||||
TensorShapeGpuKernelMod, bool, int64_t)
|
TensorShapeGpuKernelMod, bool, int64_t)
|
||||||
} // namespace kernel
|
} // namespace kernel
|
||||||
|
|
Loading…
Reference in New Issue