mindspore.Tensor.random_categorical

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

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