|
|
|
@ -18,68 +18,132 @@
|
|
|
|
|
|
|
|
|
|
namespace mindspore {
|
|
|
|
|
namespace kernel {
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_TWO(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt32)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int64_t, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int64_t, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat16)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, half, int64_t, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int64_t, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int64_t, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat32)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, float, int64_t, int64_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt16),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int64_t, int16_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt32),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int64_t, int32_t)
|
|
|
|
|
MS_REG_GPU_KERNEL_THREE(RandomCategorical,
|
|
|
|
|
KernelAttr()
|
|
|
|
|
.AddInputAttr(kNumberTypeFloat64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddInputAttr(kNumberTypeInt64)
|
|
|
|
|
.AddOutputAttr(kNumberTypeInt64),
|
|
|
|
|
RandomCategoricalGpuKernel, double, int64_t, int64_t)
|
|
|
|
|
|
|
|
|
|
} // namespace kernel
|
|
|
|
|
} // namespace mindspore
|
|
|
|
|