tensordict.nn.rand_one_hot¶ tensordict.nn.rand_one_hot(values: Tensor, do_softmax: bool = True) → Tensor¶