torch.initial_seed¶ torch.initial_seed()[源代码][源代码]¶ 返回用于生成随机数的初始种子,类型为 Python long。 注意 返回的种子仅适用于 CPU 上的默认生成器。 返回类型 int