mindspore.Tensor.random_categorical

View Source On Gitee
Tensor.random_categorical(num_sample, seed=0, dtype=mstype.int64)[source]

For details, please refer to mindspore.ops.random_categorical().