快捷方式

tensordict.nn.rand_one_hot

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

文档

访问 PyTorch 的完整开发者文档

查看文档

教程

获取适合初学者和高级开发者的深度教程

查看教程

资源

查找开发资源并获得问题解答

查看资源