torch.cuda.initial_seed¶ torch.cuda.initial_seed()[source][source]¶ 返回当前 GPU 的当前随机种子。 警告 此函数会积极初始化 CUDA。 返回类型: int