评价此页

torch.cuda.initial_seed#

torch.cuda.initial_seed()[source]#

返回当前 GPU 的当前随机种子。

警告

此函数会主动初始化 CUDA。

返回类型

int